Last post May 26, 2020 01:11 PM by Mikesdotnetting
Dec 05, 2019 10:34 AM|johnbalj|LINK
What's the equivalent of using asp.net page response in Blazor ?
Response.ContentType = "application/text; charset=utf-8";
May 26, 2020 01:11 PM|Mikesdotnetting|LINK
Blazor runs on the client. It doesn't has a Response object. That belongs to code on the server. You should use a Web API endpoint to serve non-html content. Then you can use a standard link to navigate to the URL of the endpoint.