Button click not working

G

Guest

I have developed a website with several (30) pages that works just fine on my
development machine (XP Pro SP2). When I move the site to the server (W2K3)
I have 7 pages where a mouse click on a button does nothing. All of the
other pages work as expected. I can locate nothing that is different about
these pages. They all take some user input, use validation controls and the
button is just a Submit button. I have other pages on the site that have the
same functionality and they work OK. I have rebuilt the solution and made
sure all of the aspx pages were the latest versions. Any ideas of what else
to look for would be very much appreciated.
 
A

Alvin Bruney [MVP]

It's probably because your button click event became ummapped. That can
happen due to various reasons. Check the code to make sure your button is
mapped to its event handler.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
 
S

Shimon Sim

I have this happening on regular basic. Why does it happen?
Thanks
Shimon
www.siatadev.com

Alvin Bruney said:
It's probably because your button click event became ummapped. That can
happen due to various reasons. Check the code to make sure your button is
mapped to its event handler.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
 
G

Guest

I am not sure how a button event can work on one machine and become
"unmapped" on antoher machine. Where should I be checking? Normally the
button event is hidden in C#. There is no user code to make a button event
occur other than mapping the same OnClick in the aspx page to the function
name in the code behind file.

Alvin Bruney said:
It's probably because your button click event became ummapped. That can
happen due to various reasons. Check the code to make sure your button is
mapped to its event handler.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
 
A

Alvin Bruney [MVP]

Usually, and for me, it happens when i pull down a new aspx version from
source safe. Other times, I don't really know why it becomes unmapped.

Did you verify that it is actually unmapped?
Pull up the property pages and inspect the click event property page. If the
click event is empty, it is unmapped and you should simply remap it and
rebuild the solution, otherwise, that aint the problem and you need to look
elsewhere.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


Charlie J said:
I am not sure how a button event can work on one machine and become
"unmapped" on antoher machine. Where should I be checking? Normally the
button event is hidden in C#. There is no user code to make a button
event
occur other than mapping the same OnClick in the aspx page to the function
name in the code behind file.

Alvin Bruney said:
It's probably because your button click event became ummapped. That can
happen due to various reasons. Check the code to make sure your button is
mapped to its event handler.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


Charlie J said:
I have developed a website with several (30) pages that works just fine
on
my
development machine (XP Pro SP2). When I move the site to the server
(W2K3)
I have 7 pages where a mouse click on a button does nothing. All of
the
other pages work as expected. I can locate nothing that is different
about
these pages. They all take some user input, use validation controls
and
the
button is just a Submit button. I have other pages on the site that
have
the
same functionality and they work OK. I have rebuilt the solution and
made
sure all of the aspx pages were the latest versions. Any ideas of what
else
to look for would be very much appreciated.
 
A

Alvin Bruney [MVP]

I simply don't know why it happens.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


Shimon Sim said:
I have this happening on regular basic. Why does it happen?
Thanks
Shimon
www.siatadev.com

Alvin Bruney said:
It's probably because your button click event became ummapped. That can
happen due to various reasons. Check the code to make sure your button is
mapped to its event handler.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


Charlie J said:
I have developed a website with several (30) pages that works just fine
on my
development machine (XP Pro SP2). When I move the site to the server
(W2K3)
I have 7 pages where a mouse click on a button does nothing. All of the
other pages work as expected. I can locate nothing that is different
about
these pages. They all take some user input, use validation controls and
the
button is just a Submit button. I have other pages on the site that
have the
same functionality and they work OK. I have rebuilt the solution and
made
sure all of the aspx pages were the latest versions. Any ideas of what
else
to look for would be very much appreciated.
 

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

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top