Exemple #1
0
        public static bool SubmitCheckForm()
        {
            bool result;

            if (HttpContext.Current.Request.Form.Get("txt_hiddenToken").Equals(WebHelper.GetToken()))
            {
                WebHelper.SetToken();
                result = true;
            }
            else
            {
                ShowMsgHelper.showWarningMsg("为了保证表单不重复提交,提交无效");
                result = false;
            }
            return(result);
        }
Exemple #2
0
 public static void showWarningMsg(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showWarningMsg('{0}');", message));
 }
Exemple #3
0
 public static void Alert_Wern(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showTipsMsg('{0}','3000','3');", message));
 }
Exemple #4
0
 public static void ParmAlertMsg(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showTipsMsg('{0}','2500','4');top.main.target_right.windowload();OpenClose();", message));
 }
Exemple #5
0
 public static void AlertMsg(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showTipsMsg('{0}','2500','4');RefreshCenter();OpenClose();", message));
 }