Adding web controls to a page
Posted on 2007-10-17
Stupid question. I'm trying to add a web control to my .aspx page, and I drag the control from the Visual Studio toolbox to the page. The problem is that the control doesn't get declared in the code-behind. In VS2003, I would just double-click on the control and it would bring up the .aspx.cs file with the new control declared. That doesn't work in VS2005. So how do I get the program to add the web control to the code-behind file? Thanks.