Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • İdris 34 posts 184 karma points
    Aug 15, 2013 @ 09:40
    İdris
    0

    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?

  • lothar 25 posts 99 karma points
    Sep 11, 2013 @ 10:35
    lothar
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft