Questions tagged [validate-request]
37 questions
160
votes
6 answers
ValidateRequest="false" doesn't work in Asp.Net 4
I have a form at which I use ckeditor. This form worked fine at Asp.Net 2.0 and 3.5 but now it doesn't work in Asp.Net 4+. I have ValidateRequest="false" directive. Any suggestions?

HasanG
- 12,734
- 29
- 100
- 154
122
votes
11 answers
Allow User to input HTML in ASP.NET MVC - ValidateInput or AllowHtml
How can I allow a user to input HTML into a particular field using ASP.net MVC.
I have a long form with many fields that get mapped to this complex object in the controller.
I would like to make one field (the description) allow HTML which I will…

Rabbi
- 4,622
- 9
- 35
- 45
18
votes
3 answers
ValidateRequest ="false" for single control
I'm wanting to allow users to enter HTML in only a single TextBox. I understand it's possible to change ValidateRequest in the page directive to false in order to remove protection.
I'm guessing that this allows HTML to be entered in any TextBox on…

ajbeaven
- 9,265
- 13
- 76
- 121
16
votes
4 answers
A potentially dangerous Request.Form value was detected from the client
I have one asp.net application, which has some problems while i am entering the special characters such as ": , " in the search box. If i enter this text in search box, i got the exception like this.
A potentially dangerous Request.Form value…

MAC
- 6,277
- 19
- 66
- 111
13
votes
2 answers
validateRequest and requestValidationMode dont work with .net 2.0
I am hosting WCF Service in IIS 7. They are running under .net version 2.0. Everything is working fine. But lately, i am getting error list "Potentially Dangerous request ...". I searched on the internet and found out have i have to set my…

Vivek Patel
- 349
- 2
- 4
- 21
6
votes
3 answers
validateRequest="false" is acting weird
(ASP.NET 4.0 C#)
I have my in the webconfig. And
I have my validateRequest="false" in page directories.
On one page, I send some data (html) from a ckeditor (textarea) to a database. Works fine.
On another…

Kasper Skov
- 1,954
- 10
- 32
- 53
2
votes
3 answers
Disable ValidateRequest for a specific page
Friends I am in trouble and need your help.
For database management in the admin section of my website I have few text fields where I would like to input data along with HTML tags.
As soon as i add any HTML tag such as < BR /> the SQLDATASOURCE…

Ali Khan
- 91
- 3
- 10
2
votes
1 answer
How to validate data when validateRequest is set to "false"
Do sites like Stackoverflow or asp.net use validateRequest= "false" at their page directive? If "Yes" then how they are checking the user input and if "NO" then how they are able to postback the data ?

Zerotoinfinity
- 6,290
- 32
- 130
- 206
2
votes
4 answers
Alternative to ValidateRequest="false"
Is there a way to prevent the error "A potentially dangerous Request.Form value was detected from the client" other than setting ValidateRequest="false"?
Update: I removed the "on the page" part. I'd like to not use ValidateRequest="false" at all,…

Homer
- 7,594
- 14
- 69
- 109
2
votes
1 answer
ValidateRequest stopped working after changing .net to 4.0
I get this error after changing from .Net 4.5 to 4
the error says:
"A potentially dangerous Request.Form value was detected from the client"
In my 4.5 solution i have "ValidateRequest="false"" in the top of my aspx page. But that doesn't seem to…

Michael Tot Korsgaard
- 3,892
- 11
- 53
- 89
1
vote
2 answers
Validation exception even with ValidateRequest="false"
I have a textbox in a web form where an admin user can add HTML to be submitted for entry into the database.
In the past, I've always added ValidateRequest="false" to the Page when submitting HTML data to avoid validation error. However, with this…

Curtis
- 101,612
- 66
- 270
- 352
1
vote
2 answers
What do I need to do to protect my site if I choose to set ValidateRequest= false?
I've kind of just discovered that because ValidateRequest = true by default, that by default, you cannot enter "<" or ">" into any input field.
Not knowing too much about XSS attacks, for me, that seems quite restrictive.
To get around that, I've…

Diskdrive
- 18,107
- 27
- 101
- 167
1
vote
1 answer
Using ValidateRequest="true" with HttpHandlers
I have an HTTP Handler set up in the HttpHandlers section of my web.config as follows:
A PCI scan has highlighted a vulnerability within…

Pat C
- 351
- 2
- 4
1
vote
2 answers
MethodNotAllowedHttpException($others); When have errors in Validate (Laravel 5.5)
I have 2 routes:
Route::post('/post_2', 'TestController@post_2')
->name('post_2');
Route::post('/result', 'TestController@result')
->name('result');
and TestController as below.
public function post_2(){
return…

Cuong V.Nguyen
- 15
- 1
- 7
1
vote
0 answers
CRASH BILLSERVICE UNITY
everybody.
I got something error when update our app to play store.
I tested ok but when user play, they send alot of crash to google service.
Hope you can help me to know what happen. Thank you.
java.lang.Error: FATAL EXCEPTION…

Hải Vũ
- 11
- 1