473,322 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

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!
Jan 26 '06 #1
1 1497
Never mind. It turns out after I put a validation summary on the form it
revealed the problem.

"VB Programmer" <do**@emailme.com> wrote in message
news:uJ**************@TK2MSFTNGP15.phx.gbl...
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!

Jan 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
14
by: Sinity | last post by:
Anyone knows the method/codes to disable the clicked button after first click by using .aspx-- to prevent people to click many time when waiting for the server response. I tried to do this by...
11
by: CW | last post by:
I have message entry screen that's causing me a bit of an issue. At the moment, there are 2 buttons, one is used to send message to another user (btnSend) and another is used to send messages to...
4
by: VB Programmer | last post by:
I have a cmd button on my ASPX form. On my local machine it works perfectly. After I upload it to the server I click on the button and NOTHING - doesn't post back to the server. Any ideas? ...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
7
by: MgGuigg | last post by:
Hello all, This is my first time posting a question to this forum, so here is hoping I am following protocol. I am scraping the rust off my old Basic programming skills, and have just recently...
7
by: Sridhar | last post by:
Hi, I have a question regarding the Page_Load method and Back Button of Internet explorer. I have created a webform. In that webform I have several Text Boxes. Also I have two buttons. When I...
7
by: loga123 | last post by:
Hi All, I have a web page where I would like to do certain activities when user click's a button. I have used button web control on my page. Each time, I click this button....page gets posted....
1
by: nileshsoni21 | last post by:
I have come across a strange behaviour in ASP or rather it could be a HTML or Browser Issue. The browser here is IE. The requirement is to re-load the page whenever user click back button of the...
2
by: Max | last post by:
I recently moved to ASPnet Ext 3.5 What I can't get with Ajax and History browser managemet is this: User fills some fields (dropdown and textbox) on page 1 (all are in an update panel) User...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.