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?