(Resolving the error) webform_postbackoptions is not defined

Source: Internet
Author: User

I used <Ftb: freetextbox

It is normal to use Visual Studio 2005 locally to develop everything. An error will occur when it is uploaded to the server and the function can be implemented. However, after an event is generated, the system will always prompt "webform_postbackoptions undefined"

We found that the source code of the freetextbox control contains the following sentence: <asp: button id = "uploadimage" text = "Upload" runat = "server" onclick = "uploadimage_onclick" causesvalidation = "false"/>.
The running HTML code is "<input type =" Submit "name =" uploadimage "value =" Upload "onclick =" javascript: webform_dopostbackwithoptions (New webform_postbackoptions (& quot; uploadimage & quot;, & quot;, true, & quot;, & quot;, false, false )) "id =" uploadimage "/>"

Later, I checked a lot of information and added a. axd ing on the server to solve the problem.

 

 

 

========================================================== ========================================================== ====

The following are online references:

After uploading the website to the server (. net2.0), the following problems are found:

You cannot run the linkbutton control on some pages after it is clicked. The IE status bar prompts a Javascript script error (webform_postbackoptions is not defined), but it can be used properly locally. Some server space providers are searching for ASP. net security measures, remove some default mappings, to ensure that the server is as less vulnerable to intrusion attacks and potential security vulnerabilities.

The local test is performed to delete the ing between the extension:. axd and C:/Windows/Microsoft. NET/framework/v2.0.50727/aspnet_isapi.dll.
If no form verification control exists on the page, after linkbutton runs, it calls _ dopostback (...) in IE (...), if the form verification control exists on the page, linkbutton calls webform_dopostbackwithoptions (...) in IE (...), if no. axd ing may cause problems. Find the following in "View Source File" in IE:

<SCRIPT src = "/.../webresource. axd ?... "Type =" text/JavaScript "> </SCRIPT>

Try to open the path in SRC in IE. The path cannot be opened without ing.

 

 

 

Solution:

1. Add the. axd ing. However, you cannot select "check whether the file exists.

2. If the server provider is unwilling to modify the server configuration, it has to write a program for verification on the page that requires the linkbutton control. Or set the causesvalidation of the linkbutton to "false". The button should be used whenever possible for verification submission. However, Asp.net Ajax cannot be used, and a script error may also occur.

 

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.