Click here to Skip to main content
12,953,263 members (81,818 online)
Click here to Skip to main content
Add your own
alternative version


12 bookmarked
Posted 13 Jun 2006

How to hide a user control in vs2005

, 13 Jun 2006
Rate this:
Please Sign up or sign in to vote.
This article describes how to hide a user control in vs2005
<!-- Article Starts - DO NOT ADD HTML/BODY START TAGS-->


In VS 2003, when you added a web user control to a web form it appeared as an 
"box" in design view.  This makes it easy to manage multiple user controls in one page.

In VS 2005, when you add a web user control to a web form, it appears as designed.


The problem is that it does not let you scroll through the rest of the other components on the form that are not part of the user control.


The solution is the wrap your user controls in the form around a placeholder.  This will make the control not display in the form.  Here is an example of hiding a control called UsercontrolTEST1 with a placerholder called PlaceHolder1:

<asp:PlaceHolder ID="PlaceHolder1" runat="server">
            <uc1:usercontrolTEST ID="UsercontrolTEST1" runat="server" />

That's All Folks! Short and Simple.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionWhat are those weired colors for? Pin
Jun Du13-Jun-06 7:45
memberJun Du13-Jun-06 7:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 13 Jun 2006
Article Copyright 2006 by SeaWater
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid