Button click not working

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
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
 
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
 
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.
 
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.
 
Back
Top