Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
There is one textbox in the page for which I don't want ASP.NET to validate. Is there a way to make it false for that one control? If there isn't, is there a way to ignore the "Potential Threat" error, assuming it comes from that particular control?
I had some issues with validation as well. And found solutions to disable the validation for the whole application or by page:
Like in the following example on this site: http://www.asp.net/whitepapers/request-validation
Although I was not fond of it by disabling it for the whole application or page so I ignored the error.
Now when searching through the internet again it seems from .NET 4.5 you can disable the validation per control which is what you wanted.
You can take a look for an example on te following site as it explains it very well to disable it per control:
www.codeproject.com/Articles/358993/Examining-Request-Validation-with-ASP-NET-4-5
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
ValidateRequest
There is one textbox in the page for which I don't want ASP.NET to validate. Is there a way to make it false for that one control? If there isn't, is there a way to ignore the "Potential Threat" error, assuming it comes from that particular control?
I had some issues with validation as well. And found solutions to disable the validation for the whole application or by page:
Like in the following example on this site: http://www.asp.net/whitepapers/request-validation
Although I was not fond of it by disabling it for the whole application or page so I ignored the error.
Now when searching through the internet again it seems from .NET 4.5 you can disable the validation per control which is what you wanted.
You can take a look for an example on te following site as it explains it very well to disable it per control:
www.codeproject.com/Articles/358993/Examining-Request-Validation-with-ASP-NET-4-5
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.