05 2019 档案
摘要:1:打开web.config文件,在system.web节点里,添加<httpRuntime requestValidationMode="2.0" /> 2:在aspx页面 <%@ Page指令配置里 添加 ValidateRequest="false"
阅读全文
摘要:/// <summary> /// 将UBB编码转成标准的HTML代码 /// </summary> /// <param name="argString"></param> /// <returns></returns> public static string HtmlDecode(string
阅读全文
摘要:一、配置文件概述: 应用程序配置文件是标准的 XML 文件,XML 标记和属性是区分大小写的。它是可以按需要更改的,开发人员可以使用配置文件来更改设置,而不必重编译应用程序。配置文件的根节点是configuration。我们经常访问的是appSettings,它是由.Net预定义的配置节。我们经常使
阅读全文
摘要:global.asax文件中写 void Application_BeginRequest(object sender, EventArgs e) { if (Request.RawUrl.Contains("images/")) { if (Request.UrlReferrer == null
阅读全文