function my_page_start_onload() {
if (__doPostBack) { // Error: '__doPostBack' is undefined
...
}
}
window.onload = my_page_start_onload();
I have tried many ways but with no luck.
- Control Panel -> Windows Update -> is up-to-date -> still error
Browser Definition Updated (aspnet_regiis.exe -i and iisreset) -> see http://forum.jdp.tw/thread-1552-1-1.html -> Added browser definition to C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\Browsers\ie.browsers -> RUN C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_regbrowsers.exe -i -> RUN iisreset -> still error
Try to install hotfix, but occurs an error
The update is not applicable to your computer
Try to install .NET Framework, but occurs an error
The update is not applicable to your computer
VS2012 with .NET 4.5 to run this function with blank page, still error
All versions of IE5-11, still error
Remarks:
- Request.Browser.Browser returns
InternetExplorer
- Request.Browser.Version returns
11.0
Computer Environment
- windows 7 64-bit
- VS2008 with .NET 3.5
- IIS 7.5' application pool use .NET v2.0 version
- IE11.
Many thanks for help!