1. querystring
Request. querystring ["paraname"] // pass the "paraname" Value
2. Pass the form-Post Control Value
3. Sending cookies
Set a single-value cookie
1). httpcookie ck_animal = new httpcookie ("animal ");
2). ck_animal.value = "cat ";
3). ck_animal.expires = datetime. Now. addday (1 );
4). response. Cookies. Add (ck_animal );
Read Single-value Cookie Information
You need to add a judgment to determine whether the cookie exists. Read data only when it exists.
Judgment:
If (request. Cookies ["animal"]! = NULL)
{
_ Mystr = request. Cookies ["animal"]. value;
}
Delete Single-value Cookie Information
How to delete a cookie:
Set the validity period expire of cookiename to an expiration date and write it to the client hard disk again.
Standard writing:
Response. Cookie ["animal"]. expires = datetime. minvalue;
4. Application Transfer
5. Session Transmission