I have a problem with a web form I am developing. The problem is that the button click event does not fire when the user presses the button- the page re-loads, but the code behind the button never gets executed.
Admitedly I am a little new to this (and mainly a VB6 guy), so it is possible that I am missing an important concept here- but I have used buttons on other web forms before and had no problems. The main difference is that on this form the button is nested inside a table (though if I move it out, it still does not work).
There is also a calendar control and a few scrolling datagrids on the form- nothing fancy.
Button code is as follows
Code behind is quite simple:Code:<P align="center"> <FONT face="Arial"> <asp:button id="cmdAddJob" runat="server" Text="Add Job" Height="22px" Width="96px">
VB Code:
Private Sub cmdAddJob_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAddJob.Click AddTempJob() End Sub
Thanks for any help!




Reply With Quote