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. Getting error : System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client

Getting error : System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client

Scheduled Pinned Locked Moved ASP.NET
csharphtmlsysadminhelp
2 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.
  • N Offline
    N Offline
    Niraj001
    wrote on last edited by
    #1

    This is my code html = Server.HtmlEncode(FreeTextBox1.Text) I have done validaterequest=false in the page then also its throwing error.I searched on google but all are saying same thing what i have done.I think it works for v1.1 and v2.0. I have targetframework=4.0.So please provide any idea to solve this error in .net 4.0.

    N 1 Reply Last reply
    0
    • N Niraj001

      This is my code html = Server.HtmlEncode(FreeTextBox1.Text) I have done validaterequest=false in the page then also its throwing error.I searched on google but all are saying same thing what i have done.I think it works for v1.1 and v2.0. I have targetframework=4.0.So please provide any idea to solve this error in .net 4.0.

      N Offline
      N Offline
      ncsubbu
      wrote on last edited by
      #2

      hi Put ValidateRequest="false" in source page directive of the freetextbox used pages. <%@ Page Language="C#" ValidateRequest="false" />

      your's subbu

      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