Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. A potentially dangerous Request.Form value was detected from the client [modified]

A potentially dangerous Request.Form value was detected from the client [modified]

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-nethelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bluebamboo
    wrote on last edited by
    #1

    Hi guys, Please forgive me, if it is a question frequent asked. As you know, when we tried to submit a asp.net page with characters something like '<test>' filled in, and we would get an error as the subject. How can the exception "A potentially dangerous Request.Form value was detected from the client" be handled without setting the validateRequest to false in the page directive or in the web.config file? because I just want to void this ASP.NET feature for only a single textbox, Any suggestions? Thanks, Ming.

    modified on Wednesday, April 2, 2008 10:28 AM

    N 1 Reply Last reply
    0
    • B Bluebamboo

      Hi guys, Please forgive me, if it is a question frequent asked. As you know, when we tried to submit a asp.net page with characters something like '<test>' filled in, and we would get an error as the subject. How can the exception "A potentially dangerous Request.Form value was detected from the client" be handled without setting the validateRequest to false in the page directive or in the web.config file? because I just want to void this ASP.NET feature for only a single textbox, Any suggestions? Thanks, Ming.

      modified on Wednesday, April 2, 2008 10:28 AM

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Set ValidateRequest=false on the page.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      B 1 Reply Last reply
      0
      • N N a v a n e e t h

        Set ValidateRequest=false on the page.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        B Offline
        B Offline
        Bluebamboo
        wrote on last edited by
        #3

        Hi N a v a n e e t h, Thanks for your solution, but I think you don't understand what I am asking, you are alright, that is my fault, I didn't hightlight the key words. The key word is without setting the validateRequest to false in the page directive or in the web.config file? Cheers, Ming

        N 1 Reply Last reply
        0
        • B Bluebamboo

          Hi N a v a n e e t h, Thanks for your solution, but I think you don't understand what I am asking, you are alright, that is my fault, I didn't hightlight the key words. The key word is without setting the validateRequest to false in the page directive or in the web.config file? Cheers, Ming

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Bluebamboo wrote:

          The key word is without setting the validateRequest to false in the page directive or in the web.config file?

          Ahh, I didn't noticed that :doh: . I don't think there is other way to do this. BTW, what is the problem for turning it off in page level or web.config ?

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          B 1 Reply Last reply
          0
          • N N a v a n e e t h

            Bluebamboo wrote:

            The key word is without setting the validateRequest to false in the page directive or in the web.config file?

            Ahh, I didn't noticed that :doh: . I don't think there is other way to do this. BTW, what is the problem for turning it off in page level or web.config ?

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            B Offline
            B Offline
            Bluebamboo
            wrote on last edited by
            #5

            because the basic requirement is that I provide a online html editor (implemented by using textbox) which allows user types in html markup , and submit to database. and also I have other textboxes on the same page which do need the asp.net pagevalidate feature, is any solution? any suggestion would be appricated! Cheers, Ming

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups