1. 程式人生 > >CheckRefreshed 判斷頁面刷新

CheckRefreshed 判斷頁面刷新

kref return fresh 提交 for 新頁面 run refresh .ascx

頁面最上方引用 <%@ Register Src="../Library/CheckRefreshed.ascx" TagName="CheckRefreshed" TagPrefix="uc1" %>

<body >
<form runat="server">
<uc1:CheckRefreshed ID="CheckRefreshed1" runat="server" />

.CS頁面控制刷新的操作

if (this.CheckRefreshed1.isRefreshed)//如果是刷新頁面重復提交
{
return;
}

CheckRefreshed 判斷頁面刷新