ASP.NET button not working in IE7

Q

qhm

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?
 
G

Guest

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
 
Q

qhm

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_regiis -s C:\app2


Hope this helps to anyone who encountered this problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top