Discuz!nt Forum Backstage WebForm

Source: Internet
Author: User
In the bottom left corner of the browser window, the yellow exclamation mark appears, double-click to open, display the wrong message of the title; "Webform_postbackoptions undefined"

The system was used well, suddenly a user error, said the point button does not work;

I tried it, sure enough, and most of the server controls are not available; in the bottom left corner of the browser window, the yellow exclamation mark appears, double-click to open, display the wrong message of the title; "Webform_postbackoptions undefined";

This is a JavaScript error prompt, which is, in principle, a client-side scripting error, It has nothing to do with. NET, but the ASP.net framework will know that all the controls on the ASP.net, the client will generate HTML and JAVASCRPT code, which is clearly an error with. NET-related JavaScript code.

I don't know what's going on. Search the Internet, the solution is only one, is to add axd mapping;

However, the mapping of the Axd file is available by default, unless someone deliberately removed it, so you need to add it manually, and my server is my own management, I have not moved, should not be for this reason;

I still follow the above method to view, IIS is not a problem, there are some mappings, there is nothing abnormal, but my problem is still not resolved, go online search, there is no other way to refer to;

However, think about it, since it is the problem of the Axd file, you start from it; open an ASPX document (which is the HTML source of the ASPX page in the browser) and have a similar piece of code in the header of the page:
<script src= "/webresource.axd?d=eno4gmucfpq-arp3atyjoezreih1f2__pcm7pqcmago8s3ai_nh5atoaxkmoq6ir0&t= 633004894900000000 "type=" Text/javascript "></script>

The above code is to invoke JavaScript code, and SRC is linked to a dynamic page, it is conceivable that this JS file is dynamically generated; if it generates an error, the page will not call the JS file, naturally prompts JavaScript error, prompted not to find related objects.

Copy the code from the above SRC and put it into the browser address, which is actually done as an ASPX page;

http://127.0.0.1/WebResource.axd?d=enO4GmuCFPQ-aRP3AtyjOezREIh1F2__Pcm7PqCMago8S3Ai_NH5atoAxKmOQ6Ir0&t= 633004894900000000

The error message is in the same row as the file, and the error information is the same as the ASPX document;

So I know exactly what went wrong;

As for my mistake, I will not say, (is I write in Global.asax a code out point problem, affect all the dynamic page); What I want to say is, how do we pinpoint the wrong location when there is a "webform_postbackoptions undefined" error?

The same problem, once in the HttpModule code, is also in the above method to get the error hint.



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.