[RESOLVED] [02/03] Events not firing after copy paste of control
Hey,
I got a legacy app that the man is making me change to a new layout. All the controls and code is staying the same. I've been given the HTML layout and pasted it into new .aspx pages. Now when I copy and paste the controls into the new page the events don't fire. What am I missing?
one example:
Code:
Private Sub cmdApply_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdApply.Click
sendMailFromForm()
End Sub
Code:
<asp:Button id="cmdApply" runat="server" Width="150px" Text="Apply for this Job"></asp:Button>
Thanks!
Re: [02/03] Events not firing after copy paste of control
can you verify one thing,double click on button and see if it's going properly to it's handler?also not sure but if something to do with Autoeventwire up?
Re: [02/03] Events not firing after copy paste of control
Yeah no event were firing at all. I got it to work by moving my form tag to within the div of my controls. There were some HTML errors for the designer that might have caused this but I am not sure?
but atleast it's working.
Re: [RESOLVED] [02/03] Events not firing after copy paste of control
hmm what i mean was double click on button in desinger mode it self and see if cursor is going to above handler or not
edit:oops i just read last line :D
Re: [RESOLVED] [02/03] Events not firing after copy paste of control
yeah I tried the double click and it was going to the correct event... strange... but thanks again!