technomark.in
Hot News

$(this) Selector And Children / Find In jQuery

Detect An Undefined Object Property In JavaScript

Rotate And Save Video Using VLC Media Player

Capitalize The First Letter Of String In JavaScript

Convert Any Files To Any Format Using VLC Media Player

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

How To Logout From All Devices In Skype

Technomark.in

How To Embed Google Map In Your Code

Technomark.in

How To Install IIS (Internet Information Services) On Windows

Technomark.in

Enable Directory Browsing In IIS

View All


A Potentially Dangerous Request.Form Value Was Detected From The Client


When you get this Error?....

A Potentially Dangerous Request.Form Value Was Detected From The Client, Request Validation In Asp.Net, Request Validation, Script Attack, Script Injection, Asp.Net, ValidateRequest, requestValidationMode, httpRuntime

> Un-encoded HTML content can be dangerous to the Server.
> In order to prevent Un-encoded HTML content, there is a feature in Asp.Net
> which is known as Request Validation.
> Request Validation would prevent script injection attack.
> Thereby Asp.Net web Application will be secure from script attack.
> This Issue happens when Request Validation is enabled on the Server and
> somebody is trying to send Un-encoded HTML content to the server.

How To Resolve This Issue?...

> We have To Turn Off the Request Validation feature for resolving this Issue.
> By turning Off Request Validation feature, we are allowing the cross script attack.
> We strongly recommend, Not To Turn Off the Request Validation feature.
> We can disable the Request Validation in page level and application level.

1. Disable Request Validation At Page Level

> On the aspx page, please set the validateRequest property to false.
> Add requestValidationMode to 2.0 inside httpRuntime on web.config as shown in the figure.

A Potentially Dangerous Request.Form Value Was Detected From The Client, Request Validation In Asp.Net, Request Validation, Script Attack, Script Injection, Asp.Net, ValidateRequest, requestValidationMode, httpRuntime

> Thereby we can disable Request Validation for each page.

2. Disable Request Validation At Web Application Level

> On web.config file, add the following code as shown in the figure.

A Potentially Dangerous Request.Form Value Was Detected From The Client, Request Validation In Asp.Net, Request Validation, Script Attack, Script Injection, Asp.Net, ValidateRequest, requestValidationMode, httpRuntime

> Here inside pages node validateRequest should be false
> Inside httpRuntime node, set requestValidationMode to 2.0.
> Thereby we can disable Request Validation At Web Application Level.

Watch Video of this Content on Video Streaming

Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Technomark.in

Book Train Tickets on IRCTC Quickly During Tatkal Period

Technomark.in

Before You Copy Any Image From Internet

View All

Privacy StatementDisclaimerSitemap