All Questions

1266
votes
36answers
787302 views

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 excep...
33
votes
7answers
32301 views

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 dangero...
11
votes
3answers
3015 views

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 inc...
11
votes
2answers
15835 views

C# Can i modify Request.Form's variables?

i try Request.Form.Set(k, v) but it's throw exception Collection is read-only
9
votes
6answers
26064 views

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....
0
votes
3answers
4660 views

<pages validateRequest="false" /> and <httpRuntime requestValidationMode="2.0" /> not working

I've inherited an MVC asp.net app using framework 4.0. I'm getting the dreaded "A potentially dangerous Request.Form value was detected from the client" error and all my research leads me to believe ...
3
votes
2answers
4868 views

Uploading Image and Fixing/Veryfing it's size with <input type="file">?

I Use ASP .NET 3.5 C#, and i whould like to get the picture that the user trying to upload from <input type="file" name="uploadPicture" id="uploadPicture"> Can i just use: Request.Form["uploa...
2
votes
2answers
5531 views

ASP classic - how do I join an array of strings / join / implode do not work

Dim stringIdCollection stringIdCollection = Join( Request.Form( "id" ), "', '" ) ) Dim whereStatement whereStatement = "WHERE id IN ('" & stringIdCollection & "');" I get this er...
1
votes
1answers
2672 views

How to read input value from the Request.Form collection by input name

I want to be able to read values of HtmlHiddenField controls from the Request.Form collection in a user control on postback. The keys in the collection seem to represent the control's name attribute r...
0
votes
2answers
4869 views

jquery POST data in aspx page

I post data to my aspx file qith the following code: $.ajax({ type: 'POST', url: "Ajax_Text.aspx?rand=" + myRand + "&id=" + $(".ar...

Previous Next