Application is essentially a collection of all files in the virtual directory. If you want to use a variable value throughout the Application, the Application object will be the best choice.
Method 4:
Send page:
1. Define static variables: public static string str = "";
2. str = this. TextBox1.Text;
Server. Transfer ("webform2.aspx ");
Receiving page:
1. Introduce the namespace on the first page: using WebApplication1;
2 this. TextBox1.Text = WebForm1.str;
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