vs 2005: how to hide user control like it was in vs 2003

  • Thread starter Thread starter adiel_g
  • Start date Start date
A

adiel_g

Hello, in vs2003, when you added a user control, it just showed you
just a box of the user control but would not actually display the whole
form. In vs2005, when you add a user control, it actually shows you
the whole form from the user control. This is annoying since I cannot
edit the rest of the fields that are not part of the user control. I
am sure this must be a simple setting somehow that I can make the user
control be a "box" like in vs2003.

Thanks Before Hand,
Adiel
 
Fixed the problem...

Solution: Wrap the user controls around a placeholder:

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


Then the controls are hidden in design time and visible at run time. :)

Adiel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top