Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 21, 2011 10:03 AM by pettrer
Dec 13, 2011 03:39 PM|LINK
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
Could someone please help me out here?
Thanks a lot,
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:
The double TAB's creates the event handler for you.
Dec 21, 2011 10:03 AM|LINK
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!