string strScript = "<script charset='utf-8' Language=Javascript>if( confirm('参数存在不安全字符') ) {window.history.back(-1); } else { window.history.back(-1);}</script>";
StringBuilder sb = new StringBuilder();
sb.Append("<html>");
sb.Append("<head>");
sb.Append("<meta charset=\"utf-8\" />");
sb.Append(strScript);
sb.Append("</head>");
sb.Append("</html>");
System.Web.HttpContext.Current.Response.Write(sb);
System.Web.HttpContext.Current.Response.End();
本文转自程序猿博客51CTO博客,原文链接http://blog.51cto.com/haihuiwei/1956232如需转载请自行联系原作者
365850153