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