标签:
发送页面:<a href="RequestPage.aspx?name=value"></a>
接收页面:Request["name"],Request.QueryString["name"],Request.Params["name"]
发送页面:
<form mathod="post" action="RequestPage.aspx">
<input id="id" name="name"></input>
<input type="submit"></input>
</form> 接收页面:Request.Form["name"]
Session["para1"]=value1;
Application["para2"]=value2;
获取Session和Application中存储的值
Session["param1"];
Application["para2"];
发送页面:ServerPage.aspx
public static string name="value";
protected void Page_Load(object sender,EventArgs e)
{
Server.Transfer("RequestPage.aspx?name=value");
}
接收页面:ServerPage.name;
<form method="POST" action="RequestPage.aspx?name=0000">
<input type="checkbox" name="name" value="正义" />正义
<input type="checkbox" name="name" value="帅气" />帅气
<input type="submit" value="submit" />
</form>
Request,Request.QueryString,Request.Params,Request.Form,Request.ServerVariables之间的区别
标签:
原文地址:http://www.cnblogs.com/simple-stupid/p/5220831.html