How to response json from webserver and don't show them onto webpage on Webform

jain

New Member
I have an api that return a json string.An ashx file \[code\] public void ProcessRequest (HttpContext context) { context.Response.ContentType = "application/json"; context.Response.ContentEncoding = System.Text.Encoding.UTF8; string result = string.Empty; result = "{\"status\": \"OK\"}"; context.Response.Write(result); }\[/code\]I want to hidden the string {"status": "OK"} on webpage response and the client can get this string.Thanks.Thanks
 
Back
Top