c# - read html content of a page using ajax -


i have need.. hope can give me right advice !

i have read whole html content of page using ajax call, necessary client visiting page make request read html content, , not application (i mean using downloadstring method of c#)

after this, need read response of ajax call (in case html content of page setted in "url:" parameter of ajax call) server-side (in code-behind)

how can that? possible?

thank help..

stefano

stefano, html content through ajax using, exemplo, jquery this:

$.get('ajax/test.html', function(data) {   //data html }); 

after can make ajax call sending data "code-behind", can see in complete code:

$.get('ajax/test.html', function(data) {     $.ajax({         datatype: "json",         data: "htmldata=" data         type: "post",         url: '/code_behind.aspx',         success: function(response){             console.log(response);         }     });  }); 

i hope helps.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -