ASP.NET how to transfer data between forms and forms
Everyone knows that the ASPX is very easy to pass the value (such as TextBox1.text, etc.) but sometimes you must use the previous ASP method to use the previous ASP method. It seems to return to the past. I use a class of static properties as the global variables of the two classes to realize two pages, and a simple example is as follows:
First define a class containing static properties: use system;
Summary description of Namespace Study {///
Then write this in a page containing information submitted: <% @ page language = "c #" codebehind = "submit.aspx.cs" autoeventwireup = "false" inherits = "study.submit"%>
CodeBehind: First introduced Study Namespace Using Study; add the Button1 Click Event Private Void Button1_Click (Object Sender, System.Eventargs E) {CINDEX.NAME = TextBox1.text; // The value to another page is assigned to the class Static property response.Redirect ("getSubmit.aspx");}