Comparison of ASP. NET 2.0 web page navigation technology

Source: Internet
Author: User

Hyperlink

Features:
Execute new requirements on the target webpage
You need to start
Do not pass the current webpage information to the target webpage
Can redirect any web page, not just the web page in the Web Application
Allows you to share information between webpages using query strings or working phase states (space can be set up by programming and query strings)
Usage:
Navigation without additional processing
When the user controls the navigation of another web page

Response. Redirect ()

Features:
Publish the current webpage information to the target webpage
Publish available information on the target webpage
You need to start
Can redirect any web page, not just the web page in the Web Application
Allows the target webpage to read the public attributes of the source webpage when the target webpage and the source webpage are in the same web application.
Usage:
Transfer the current webpage information to the target webpage
When the user controls the navigation

Server. Transfer ()

Features:
Execute new requirements on the target webpage
Pass the query string to the target webpage
Control the target URL and query string in programming and dynamic mode
Can redirect any web page, not just the web page in the Web Application
Allows you to store the information of the source webpage in the working phase before you redirect, so that you can share information with the target webpage.
Usage:
For Conditional navigation, you must use

Cross-page publishing
Cross-page posting

Features:
Transfer the control to the rendered new webpage (replacing the source webpage)
Only redirect the webpage in the same web application as the source webpage
You can read values and public attributes from the source webpage.
Unexpected behavior caused by updating the target webpage
Usage:
This method is applicable when the user does not see the URL.
If it is a conditional navigation, you must use it only when controlling the navigation and accessing the content of the source webpage.


 

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.