I suggest you ...

Allow C# to add Event handlers to classes using codebehind navigation bar the same way as in VB.NET

In VB.NET, when you use the navigation bar (the two drop down boxes) at the top of a class/codebehind file, you select the object in the left drop down, and see a list of available events for that object type in the right drop down (regardless if they have handlers attached to those events), when you select one of those events, a new event handler will be written for you in the code, or if a handler already exists, that handler gets scrolled into view.

In C#, this behaviour does not exist, and it assumes the programmer knows the name of event from memory, rather than discovering it with intellisense. You have to use the Page_[eventName] name.

This feedback filed on Connect (before I saw UserVoice):
https://connect.microsoft.com/VisualStudio/feedback/details/688175/vs2010-c-add-page-event-handlers-to-asp-net-using-codebehind-navigation-bar-the-same-way-as-in-vb-net

See discussion (with screenshot):
http://stackoverflow.com/questions/5053186/visual-studio-2010-showing-available-events-from-code-behind

Previous (closed) feedback, from 2004, but still not addressed:

https://connect.microsoft.com/VisualStudio/feedback/details/118572/insert-events-from-the-codebehind-page

https://connect.microsoft.com/VisualStudio/feedback/details/93060/visual-c-add-page-events-to-asp-net-cs-pages-like-vb

62 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Sam shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

Thanks for taking the time to share this suggestion. This item has been around for a couple of versions of Visual Studio and we haven’t acted on it. Looking at the VS “15” plans, we’re not going to take action on this item, so we’re going to close it. If the suggestion is still relevant, please either take a look to see if there’s another suggestion that’s similar that you can vote on, or open a new suggestion.

- The Visual Studio Team

4 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base