ASP.NET 防止回上一頁重複新增
----------------------------------------------------------------------------------------------------
.cs
protected void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
Response.Cache.SetExpires(DateTime.MinValue);
}
protected void Button1_Click(object sender, EventArgs e)
{
Save();
Response.Redirect("success.aspx");
//Server.Transfer("success.aspx", true);
}
private void Save()
{
}
沒有留言:
張貼留言