I have a question re the two drop down menus above the code in code behind.
As I recall it, the left menu used to show the various controls of the associated .aspx page. The right menu would show the evens for the control to the left. In other words, if Page was visible in the left menu, then Page_Load and Page_Complete would be
selectable in the right menu. Existing events would be shown in bold, and a clicked event name would either result in a jump to that event or create a new event.
Have I been dreaming? Providing I haven't why doesn't this work in my copy of VS Studio Professional 2010? Now I only see the class to the left (pointless I think) and only the existing methods etc to the right, leaving no menu for showing the corresponding
events.
This is how VB.NET works, but it was never fully implemented for web projects in Visual Studio. The best way to see all the events is to use intellisense to discover them and then make VS auto generate the event handlers. Like so:
Page.PreRenderComplete +=[TAB][TAB]
The double TAB's creates the event handler for you.
Thanks a lot for your reply. Actually I was only working in VB.Net-based web sites at the time. I now switched to C# for a project, so maybe that's why!
Thanks for the shortcut as well and enjoy the holidays!
pettrer
Participant
970 Points
469 Posts
The drop down menus in code behind
Dec 13, 2011 03:39 PM|LINK
Hi all,
I have a question re the two drop down menus above the code in code behind.
As I recall it, the left menu used to show the various controls of the associated .aspx page. The right menu would show the evens for the control to the left. In other words, if Page was visible in the left menu, then Page_Load and Page_Complete would be selectable in the right menu. Existing events would be shown in bold, and a clicked event name would either result in a jump to that event or create a new event.
Have I been dreaming? Providing I haven't why doesn't this work in my copy of VS Studio Professional 2010? Now I only see the class to the left (pointless I think) and only the existing methods etc to the right, leaving no menu for showing the corresponding events.
Could someone please help me out here?
Thanks a lot,
Pettrer
madskristens...
Member
108 Points
14 Posts
Re: The drop down menus in code behind
Dec 16, 2011 02:17 AM|LINK
This is how VB.NET works, but it was never fully implemented for web projects in Visual Studio. The best way to see all the events is to use intellisense to discover them and then make VS auto generate the event handlers. Like so:
Page.PreRenderComplete +=[TAB][TAB]
The double TAB's creates the event handler for you.
pettrer
Participant
970 Points
469 Posts
Re: The drop down menus in code behind
Dec 21, 2011 10:03 AM|LINK
Hi,
Thanks a lot for your reply. Actually I was only working in VB.Net-based web sites at the time. I now switched to C# for a project, so maybe that's why!
Thanks for the shortcut as well and enjoy the holidays!
/Pettrer