Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public static void Alert(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showTipsMsg('{0}','2500','4');", message));
 }
Exemplo n.º 3
0
 public static void showWarningMsg(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showWarningMsg('{0}');", message));
 }
Exemplo n.º 4
0
 public static void ParmAlertMsg(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showTipsMsg('{0}','2500','4');top.main.target_right.windowload();OpenClose();", message));
 }