Results 1 to 5 of 5

Thread: [RESOLVED] [02/03] Events not firing after copy paste of control

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Resolved [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.

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    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

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    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.

  4. #4
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    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

    editops i just read last line
    __________________
    Rate the posts that helped you

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    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
  •  



Click Here to Expand Forum to Full Width