웹 양식 제출 반복 요청을 방지하기 위해

///  <요약> 
        /// 防止一个请求重复提交
         ///  </ 요약> 
        공개  공극 PreventRepeatSubmit () 
        { 
            경우 (ScriptManager.GetCurrent ( .Page) .IsInAsyncPostBack) 
                ScriptManager.RegisterStartupScript (  ,  .GetType ( ), " PreventRepeatSubmit " ,  .Page.ClientScript.GetPostBackEventReference (  .Page.Form, 문자열 .Empty), 진정한 );
            다른 
                Page.ClientScript.RegisterStartupScript ( .GetType (), " PreventRepeatSubmit " ,  .Page.ClientScript.GetPostBackEventReference (  .Page.Form, 문자열 .Empty), 진정한 ); 
        }

 

추천

출처www.cnblogs.com/nanfei/p/11571915.html