Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

VB 2005 event handlers (asp.net)

Options
  • 25-03-2008 1:17pm
    #1
    Registered Users Posts: 7,468 ✭✭✭


    In VS 2005 it seems that the default behaviour for creating events in asp.net pages is to use Handles in the code behind. Now I prefer specifying the event handler in mark-up. Is there a way to change this default behaviour?


Comments

  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Disable AutoEventWireup, then you can specify yourself what it does...

    Any reason you want to do it this way..


  • Registered Users Posts: 7,468 ✭✭✭Evil Phil


    That's not it Ginger. Doesn't matter anyway, if I specify the event in mark-up and then navigate to it in the code behind using the Declaration dropdown a new event is created (pain in the ass tbh). So it seems I will have to suit vb.net instead of vb.net suiting me.


  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Ah ok, get you now.. I will have a think about it


Advertisement