Where were the page and event controls for the code in Visual Studio 2012?

I can’t understand for my whole life how to do what I did forever in VS2008 and earlier since VS 2012.

When creating a web application, drop some server-side items on the page, then go to the code and there were two drop-down menus at the top of the code editor. The page and controls on the page will be displayed on the left, selecting one of them, say, the GridView, then will display “Events for this control” in the drop-down list on the right. Therefore, I could double-click on it and create one of the events without remembering or entering the event in the code.

In my VS 2012, only the page is displayed on the left (great help) and no controls. At the same time, the selected right drop-down element displays the controls, but when selected, it loads only the designer for this page and the records for this control.

Is this a setting that I did not set, or how and why has it changed, how to do it again in VS2012?

+7
source share
3 answers

It is in the properties window, but you have to click on the lightning icon.

+4
source

You can re-enable the event navigation bar at the top of the code for the files, for example:

1) From the Tools menu, select Options

2) In the options on the left, select All languages

3) In the options on the right, check the box next to the Navigation Bar , then check it again.

It is important to turn it off and then on again.

This will override the development environment settings and make the event navigation bar appear at the top of all text editors.

+2
source

Double-click the control (button) in the "Design vew" to create a handler for the Click event.

0
source