Response. Redirect and server. Transfer)

Source: Internet
Author: User
1. browser ASP file request-> server execution-> response. Redirect statement-> the server sends the address following response. Redirect to the client browser-> the browser requests a new address.

2. browser ASP file request-> server execution-> server. Transfer statements-> server redirection to new files

Switch object:

1. response. Redirect can switch to any existing webpage.

2. server. Transfer can only switch to the. aspx webpage in the same directory or subdirectory.

Data Confidentiality:

1. After response. Redirect, The address will change to the page address after the jump.

2. The address remains unchanged after server. Transfer, hiding the address of the new web page and the parameter values attached to the address. Data Confidentiality.

The amount of data transferred (that is, the parameters attached to the URL ):

When using the URL to transmit data, you must note the URL encoding. The reason for encoding is that this character has special significance, for example: &, which is the separator of the parameter, the solution is to call the server. urlencode (variable) encodes the data to be passed.

1. The data that response. Redirect can transmit is limited to 2 kb.

2. When the transmitted data exceeds 2 kb, you must use server. Transfer.

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.