I’ve got a custom button control that handles an OnServerClick. My aspx dev’s are asking me if it would be possible to influence Intellisense so it will give me all the possible event handlers for that page. Is this possible?
Basically I would like to have auto completion on my OnServerClick events in my ASPX pages (just like when I would have an enum).
Any idea?
It’s not possible to get intellisense on server side events in the aspx.
It probably only works in the designer. When your dev’s want to see the possible handlers, they can check out the designer and view the click eventhandlers in button properties / events / click.
Simply a limitation / bug / you name it of Visual Studio 2010 and lower.
But: maybe VS 2011 will make you happy! :
For more info and screenshots:
Server Side Event Handler Generation From ASP.NET Markup in Visual Studio 2011 Developer Preview