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.