|
-
Sep 4th, 2008, 07:29 AM
#1
Thread Starter
Frenzied Member
[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!
Last edited by Besoup; Sep 4th, 2008 at 07:38 AM.
-
Sep 4th, 2008, 08:32 AM
#2
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?
__________________
Rate the posts that helped you 
-
Sep 4th, 2008, 08:34 AM
#3
Thread Starter
Frenzied Member
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.
-
Sep 4th, 2008, 08:36 AM
#4
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 ops i just read last line
__________________
Rate the posts that helped you 
-
Sep 4th, 2008, 08:38 AM
#5
Thread Starter
Frenzied Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|