How do crawlers crawl data to Asp.net-dopostback to obtain data on new pages?

Source: Internet
Author: User
In the Web 2.0 era, many websites adopt Ajax technology. The cost of a better user experience is that the content search engine obtained by JavaScript cannot be crawled. Google is also studying this technology. This article discusses ASP. NETProgramThe generated links and how crawlers can crawl in.
Question
Question: The data list displayed on a website is displayed on pages, and the previous and next pages are submitted to the background using _ dopostback, as shown in figure
Javascript :__ dopostback (ucinfolistmore $ gridinfolist $ _ ctl21 $ _ ctl1 ,).
And the parameters passed in on the next page on each page are the same.
Analysis: First, we 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
} Else {
Theform = Document. form1; // also available here
}
Theform. _ eventtarget. value = eventtarget. Split ("$"). Join (":");
Theform. _ eventargument. value = eventargument;
Theform. Submit ();
}
Ming
The problem lies in. _ eventtarget and _ eventargument. This is simple. We can assign values to these two parameters and then
Send post in the background. So how to specify a page? ASP. NET stores the information of the current page in session mode in the background. we can ensure that the information of the current page is the same in post.
Sessions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.