Solution for potential dangerous request. Form values detected from the client

Source: Internet
Author: User
The request. form value is detected in the client (tbname = "'; -- <script language =" ja.

Note:The request verification process detects potentially dangerous client input values, and the processing of the request has been aborted. This value may indicate attempts to compromise application security, such as cross-site scripting attacks. You can disable request verification by setting validaterequest = false in the page instruction or configuration section. However, in this case, it is strongly recommended that the application explicitly check all input.
Exception details: system. web. httprequestvalidationexception: from the client (content = ".; -- <script language = "Ja... ") detected a potentially dangerous request. form value.

The solution to the above error is in the following code:
<% @ Page validaterequest = "false" Language = "C #" codebehind = "01input. aspx. cs" autoeventwireup = "false" inherits = "commandexample. login" %>
Add validaterequest = "false", or add the following to the Web. config configuration file:

<Pages validaterequest = "false" enablesessionstate = "true" enableviewstate = "true"> </pages>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.