PC Review


Reply
Thread Tools Rate Thread

Button doesn't post back/click code doesn't run

 
 
VB Programmer
Guest
Posts: n/a
 
      26th Jan 2006
For some reason all of a sudden my button on my webform doesn't run it's
code. I have checked that the "runat=server" and that the "Handles
cmdButton.click" is at the end of the sub. Any ideas? (Using 2.0)

Here's part of my html...
:
:
</table><br />
<asp:Button ID="cmdSave" runat="server" Text="Save Profile" />
</asp:Content>

Here's the sub definition...
Protected Sub cmdSave_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cmdSave.Click

Any ideas?

Thanks!


 
Reply With Quote
 
 
 
 
VB Programmer
Guest
Posts: n/a
 
      26th Jan 2006
Never mind. It turns out after I put a validation summary on the form it
revealed the problem.

"VB Programmer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> For some reason all of a sudden my button on my webform doesn't run it's
> code. I have checked that the "runat=server" and that the "Handles
> cmdButton.click" is at the end of the sub. Any ideas? (Using 2.0)
>
> Here's part of my html...
> :
> :
> </table><br />
> <asp:Button ID="cmdSave" runat="server" Text="Save Profile" />
> </asp:Content>
>
> Here's the sub definition...
> Protected Sub cmdSave_Click(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles cmdSave.Click
>
> Any ideas?
>
> Thanks!
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Button.Click event doesn't fire when clicking button in formView.InsertItemTemplate Andy B. Microsoft ASP .NET 0 25th Nov 2009 03:27 PM
how to avoid post-back on button (web control) click in asp.net 2.0? loga123 Microsoft ASP .NET 7 21st May 2006 10:16 PM
Button ghosts... click it works... click again it doesn't work =?Utf-8?B?QmVu?= Microsoft Access Forms 4 14th Dec 2005 01:05 PM
button click does not post back Kaustav Neogy Microsoft ASP .NET 0 13th Aug 2003 09:40 AM
Re: post back doesn't work Wickwack Microsoft ASP .NET 1 23rd Jul 2003 02:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 PM.