asp.net – Web.config:在xml属性中放一个注释
发布时间:2020-05-25 15:46:03 所属栏目:asp.Net 来源:互联网
导读:我想在web.config文件中发表评论,如下所示: httpRuntime requestValidationMode=2.0 // require for [ValidateInput(false)] in .net-4.0 requestPathInvalidCharacters= // include character in the url ena
|
我想在web.config文件中发表评论,如下所示: <httpRuntime requestValidationMode="2.0" // require for [ValidateInput(false)] in .net-4.0 requestPathInvalidCharacters="" // include & character in the url enableVersionHeader="false" // disable X-AspNet-Version header /> 有没有办法以这种方式发表评论,使用服务器端的评论,如<%%>或者其他的东西? 解决方法web.config文件是一个XML文件,因此您唯一的选择是使用XML注释:<!-- requestValidationMode="2.0" - require for [ValidateInput(false)] in .net-4.0 requestPathInvalidCharacters="" - include & character in the url enableVersionHeader="false" - disable X-AspNet-Version header --> <httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" enableVersionHeader="false" /> (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – IIS Express全能子域名网址
- asp.net-mvc – 具有多个应用程序的ASP.NET标识
- asp.net – 使用CompareValidator控件将用户输入日期与今天
- log4net在ASP.NET中的唯一请求ID
- asp.net – 如何在隐藏字段(TextBox)上触发RequiredFieldVa
- asp.net-mvc – ServiceStack应该是MVC应用程序中的服务层还
- asp.net – 存储字符串数组在appSettings?
- asp.net-mvc – 在MVC 3模型ID属性中将ScaffoldColumn属性设
- ASP.NET MVC HTML Helpers是否被高估?
- asp.net – 我可以通过div onclick事件调用函数后面的代码吗
推荐文章
站长推荐
- ASP.NET – 将网站投入生产的基本清单
- 休息 – ASP.NET Web API授权和身份验证
- IIS 7.5 ASP.NET-4 Gzip压缩
- asp.net – 回发时超过最大请求长度异常
- asp.net-mvc-3 – 如何使用剃刀包括.html或.asp文
- ASP.NET MVC 3 Ajax.BeginForm和Html.TextBoxFor
- asp.net – 如何在iTextSharp中显示水平线
- asp.net – Visual Studio 2008,2010或2012(v11)
- AMF学习2远程调用的封装
- asp.net – 如何从System.Web.HttpPostedFileBas
热点阅读
