Asp.net| Data | page
In the Web 2.0 era, many Web sites using AJAX technology to achieve a better user experience the price is that the content of JavaScript search engine can not crawl, Google is also studying the technology. This article discusses the links generated by the ASP.net program, and how the crawler can crawl into the problem.
Problem: The list of data appearing on a Web site is paginated, and the previous and next pages are submitted to the background with __dopostback, such as Javascript:__dopostback (' ucinfolistmore$gridinfolist$_ctl21$ _ctl1 ', ' we don't get his absolutely linked address, and each page has the same parameters as the next page.
Analysis: We first understand what __doPostBack has done.
function __doPostBack (Eventtarget, eventargument) {
var theform;
if (Window.navigator.appName.toLowerCase (). IndexOf ("Netscape") >-1) {
Theform = document.forms["Form1"];//Note the formid here
} else {
Theform = document. form1;//and here.
}
Theform.__eventtarget.value = Eventtarget.split ("$"). Join (":");
Theform.__eventargument.value = eventargument;
Theform.submit ();
}
You see, the problem is in. __eventtarget (background-processed events) and __eventargument. This is simple, we can assign values to these two parameters, and then send post to the background. So how to specify a page, asp.net in the background is the session to save the current page information, we will be able to post when we can ensure that the same conversation on the.