On May 10, 3:22 pm, Alexey Smirnov <alexey.smir...@gmail.com> wrote:
> On May 10, 8:47 pm, qhm <mai.quo...@gmail.com> wrote:
>
> > I currently have a page that I've been developing and testing in IE 6
> > and Firefox. I just recently update to IE 7 and now the button event
> > doesn't fire.
>
> > It works fine in Firefox.
>
> > The platform is asp.net 1.1.43
>
> > It works in ie6 and firefox 2.0
>
> > I've tried add in another button on the same page and the new one also
> > does not fire.
>
> > Has anyone had similar problem to this?
>
> Maybe there is a javascript error? Try to check it. Internet Options -
> Advanced, under Browsing - check display a notification about every
> script error, uncheck disable script debugging... It helps to find if
> there any problem with the client scripts
I figured it out. It happens when I created a new website on a new IIS
server to run my app. The IIS does not automatically map the script
directory to .NET for you, you have to map it yourself. So all the
pages with validation control on them will not respond to button
firing.
Solution: after I create any website, just go to the proper .NET
framework directory and type the command
aspnet_regiis -c
to install/update/map all your websites with the script map
Becareful if you run multiple .NET version apps on the same machine
though it will make the script map default for the version that your
executing from.
If you want to update the script map for 1.1.43 for app1 (located in C:
\app1) you will do
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_ regiis -s C:\app1
And you want to update the script map for 2.0 for app2 (located in C:
\app2) you will do
C:\WINNT\Microsoft.NET\Framework\v2.0\aspnet_regii s -s C:\app2
Hope this helps to anyone who encountered this problem.
|