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

Discussion in 'ASP .Net' started by VB Programmer, Jan 26, 2006.

  1. 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!
    VB Programmer, Jan 26, 2006
    #1
    1. Advertising

  2. Never mind. It turns out after I put a validation summary on the form it
    revealed the problem.

    "VB Programmer" <> wrote in message
    news:...
    > 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!
    >
    VB Programmer, Jan 26, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kaustav Neogy

    button click does not post back

    Kaustav Neogy, Aug 13, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    537
    Kaustav Neogy
    Aug 13, 2003
  2. sylvia sil
    Replies:
    1
    Views:
    614
    Curt_C [MVP]
    Dec 29, 2004
  3. loga123
    Replies:
    9
    Views:
    48,176
    mamikel
    May 15, 2009
  4. =?Utf-8?B?Z29yaWxsYQ==?=
    Replies:
    1
    Views:
    764
    Masudur
    May 25, 2007
  5. Replies:
    0
    Views:
    294
Loading...

Share This Page