QueryString:页面与页面之间的参数发送.
提交:
cookie:在用户的本地电脑,浏览器关闭后,在存在期限和没被清空前,始终存在。
写入:
要先添加引用:
提交:
Response.Redirect("ErrorPage.aspx?Message=Your user name is missing.");
接收: protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ErrorMessageLabel.Text = Request.QueryString["Message"];
}
}
cookie:在用户的本地电脑,浏览器关闭后,在存在期限和没被清空前,始终存在。
写入:
要先添加引用:
using System.Net;
然后再去写入: