Thursday, November 25, 2021

Headers context json

Response.ContentType = "application/json";

or more generally

Response.Headers.Add("Content-type", "text/json");
Response.Headers.Add("Content-type", "application/json");


reference:- https://stackoverflow.com/questions/894828/creating-a-json-header-on-asp-net/894853


No comments:

Post a Comment