Error: SYS. webforms. pagerequestmanagerservererrorexception: handled on the server
An unknown error occurs during the request. The status code returned by the server is 500.
========================================================== ========================================================== ============
Method 1:
Add this code to Web. config without verifying the event data.
<System. Web>
<Pages enableeventvalidation = "false"/>
</System. Web>
Problem: This code originally exists in my web. config, but my local computer and some computers won't
The above error occurs, but some computers may become depressed ......
Method 2:
Add enablepartialrendering = "false" to scriptmanager to display detailed error messages.
.
As follows:
<Asp: scriptmanager runat = "server" enablepartialrendering = "false"/>
Problem: This method will make the page have a screen flushing effect. I am trying to solve the screen flushing problem, so I cannot solve my problem.
Question
Method 3:
The general cause is that there are potential dangerous characters on the page. Add validaterequest = "false" to the header"
As follows:
<% @ Page Language = "C #" masterpagefile = "~ /Masterpages/companymanage. Master"
Codefile = "companyintroedit. aspx. cs"
Inherits = "companyintroedit" Title = "untitled page" validaterequest = "false"
%>