Hi,
In a form, there are a textarea and a ASP.NET's button. When I input data as below, it generated an error when I clicked the button.
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/TransService.hpp>
#include <xercesc/parsers/SAXParser.hpp>
A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$cphContent$cphSubContent$tboxReviewContent="#include <xercesc/util/Platfo...").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$cphContent$cphSubContent$tboxReviewContent="#include <xercesc/util/Platfo...").
Source Error:
[No relevant source lines]
Please help me how to validate data in the textarea. I want to control it and go to my error page. And I viewed that it generated error in the client side, before it went to the click event in the server side.
Thank in advance.
Duc
In a form, there are a textarea and a ASP.NET's button. When I input data as below, it generated an error when I clicked the button.
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/TransService.hpp>
#include <xercesc/parsers/SAXParser.hpp>
A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$cphContent$cphSubContent$tboxReviewContent="#include <xercesc/util/Platfo...").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$cphContent$cphSubContent$tboxReviewContent="#include <xercesc/util/Platfo...").
Source Error:
[No relevant source lines]
Please help me how to validate data in the textarea. I want to control it and go to my error page. And I viewed that it generated error in the client side, before it went to the click event in the server side.
Thank in advance.
Duc