views:

46

answers:

1

I recently installed Visual Studio 2010 Ultimate. When I add a control to the default.aspx page, the corresponding C# code isn't added to the default.aspx.cs page. Is there any way to enable this, like it was in VS 2008, or will I have to manually add the code for each control?

A: 

What code exactly do you expect it to add to the CS file?

Simon Hazelton
For example, if I add a Button control, I'd like it to add a function like "Button1_click". That's what Visual Studio 2008 did.
AUpadhyay
I've never seen that behaviour in VS2008, just double click the button and the code will be automagically written for you.
Simon Hazelton
When I double click the button, it takes me to the source view for the default.aspx page
AUpadhyay
...sounds like you may have an installation problem. The VS.net 2010 behavior is the same as VS.net 2008 in this case.
Tahbaza