Пример #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);
        }
Пример #2
0
 public static void Alert(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showTipsMsg('{0}','2500','4');", message));
 }
Пример #3
0
 public static void showWarningMsg(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showWarningMsg('{0}');", message));
 }
Пример #4
0
 public static void ParmAlertMsg(string message)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showTipsMsg('{0}','2500','4');top.main.target_right.windowload();OpenClose();", message));
 }
Пример #5
0
 /// <summary>
 /// 显示消息提示对话框,并进行页面跳转
 /// </summary>
 /// <param name="page">当前页面指针,一般为this</param>
 /// <param name="msg">提示信息</param>
 /// <param name="url">跳转的目标URL</param>
 public static void ShowAndRedirect(System.Web.UI.Page page, string message, string url)
 {
     ShowMsgHelper.ExecuteScript(string.Format("showTipsMsg('{0}','2500','4');window.location=\"" + url + "\";", message));
 }