简体   繁体   中英

using requestPathInvalidChars in asp.net application

I would like to allow a page on my website to allow & and . charecters in my website. I found out that this is possible with putting requestPathInvalidChars in your webconfig. looking around on the web I did not find any good examples on how to accomplish this. How do I allow those specified char on my site? thanks for any answers.

I believe you just set it to blank:

<system.web>
    <httpRuntime requestPathInvalidCharacters="" />
</system.web>

but I also urge you to read Scott's article about this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM