Page Response RRS feed

  • Question

  • User-1618157774 posted

    What's the equivalent of using asp.net page response in Blazor ?

    such :

    Response.ContentType = "application/text; charset=utf-8";
    Response.Write("SOME TEXT");

    Thursday, December 5, 2019 10:34 AM

All replies

  • User-821857111 posted

    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.

    Tuesday, May 26, 2020 1:11 PM