Questions tagged [request.form]

89 questions
1516
votes
45 answers

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

Every time a user posts something containing < or > in a page in my web application, I get this exception thrown. I don't want to go into the discussion about the smartness of throwing an exception or crashing an entire web application because…
Radu094
  • 26,658
  • 16
  • 56
  • 77
35
votes
7 answers

Why is ValidateInput(False) not working?

I am converting an application I created using webforms to the asp.net mvc framework using vb.net. I have a problem with one of my views. I get the yellow screen of death saying "A potentially dangerous Request.Form value was detected from the…
Dekryptid
  • 1,012
  • 1
  • 9
  • 21
14
votes
6 answers

Difference between Request.Form and Request.QueryString?

Can some tell me the exact difference between Request.Form and Request.QueryString? I know one difference, like If the HTTP request method is POST, the user submitted data is in the Request.Form() collection If the HTTP request method is GET,…
Ramesh Rajendran
  • 32,579
  • 35
  • 130
  • 205
13
votes
2 answers

Can I modify Request.Form variables?

I try Request.Form.Set(k, v) but it's throwing exception Collection is read-only
complez
  • 6,552
  • 11
  • 44
  • 54
11
votes
3 answers

ASP.NET Request.Form Performance

I used a HttpHandler to implement a light-weight web service targeted for high performance. It requires a POST with content-type application/x-www-form-urlencoded. The web service does many tasks including decryption, database work, business logic…
Joey J. Barrett
  • 111
  • 1
  • 4
5
votes
1 answer

How do I get the form value that caused the "A potentially dangerous Request.Form value was detected from the client" in MVC?

I have an MVC3 application that has a custom HandleErrorAttribute so that I can email the error. I often get the "A potentially dangerous Request.Form value was detected from the client", but it only shows the first few characters of the form value…
Austin
  • 4,328
  • 7
  • 39
  • 59
5
votes
2 answers