Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

trying to return aspx page content with ajax

$
0
0

Hi, I have an aspx page that returns the content of another aspx page. I am using $.ajax() to return the page content. But the page is returning the html content too, which I donot want to display. here is the sample code:

$.ajax({
   url: "test.aspx",
   type: "get",
   dataType: "text",
   success: function(data) {
      console.log(data);
   }

});

the "test.aspx" page returns a JSON string using Response.write(json_string) in its Page Load function.

Can anyone please let me know where am I going wrong?


Viewing all articles
Browse latest Browse all 5678

Trending Articles