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