Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

VB 2005 event handlers (asp.net)

  • 25-03-2008 01:17PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


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


Advertisement