getJSON using ASP.NET

i am unable to get the value from cs page .

my code is below here :

js page :

var jsonp_url = “”;
$.getJSON(jsonp_url, function (data) {
$(‘#example-widget-container’).html("This data comes from another server1: " + data.html);

cs page :-

protected void Page_Load(object sender, EventArgs e)

    Response.ContentType = "application/json;charset=utf-8";
    String strReturn = String.Empty;
    strReturn = Request.QueryString["callback"].ToString() + "({\\"html\\":" + "Hello World!" + " })";
    Response.ContentType = "text/javascript";


 please need your help.

It is tricky to debug without actually having the code infront of me, but a few things I pick up on:

The response type should not be text/javascript, it should be application/json, like you have set above, but then change before you write to the stream.

And the most important thing, your output is not valid json. As the above will output: ?({“html”:Hello world!})
So what you want to do is remove the callback query string and brackets so:
strReturn = “{\“html\”:'\“Hello World!\”}” which will then output this: {“html”:“Hello World!”}

You should really use something like the WebAPI to handle jsonp requests, your code won’t correctly wrap the json to be jsonp.