Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
potentially dangerous Request.Form value was detected
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Steve Richter, post: 2947465"] getting this "potentially dangerous Request.Form value was detected" exception with a textbox which I have populated with some source code. I think I am getting the exception when I click OK on the web page, but that is one of my question, so I am not sure ;) I am reading how to disable request validation, [URL]http://www.asp.net/faq/RequestValidation.aspx#5[/URL] but I dont want to do that. I would rather catch the exception. But I guess that is not workable because at the time the validation exception is thrown, the individual control with the invalid data is not yet know. correct? should I Server.HtmlEncode the data I put in the textbox before posting to the browser? If I do that the data will display in encoded form ( correct? ) and I dont want that. how do I accept textbox input from a form that fails RequestValidation without disabling that validation? thanks, -Steve [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
potentially dangerous Request.Form value was detected
Top