Adding web controls to a page

Posted on 2007-10-17
Last Modified: 2013-11-26
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.
Question by:tjgquicken
    1 Comment
    LVL 96

    Accepted Solution

    2005 has changed the way that controls are declared, and they are no longer defined in the code-behind.  You should only need to see them in the HTML designer.


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now