Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Adding multiple User Controls to a single placeholder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sean - 27 Feb 2008 16:53 GMT
I am attempting to dinamically add multiple user controls to the same placeholder based on information recieved from the database. Compilation works but both usercontrols are created one on top of the other. Any suggestions

From http://www.developmentnow.com/g/36_0_0_0_0_0/dotnet-languages-csharp.ht
Nicholas Paldino [.NET/C# MVP] - 27 Feb 2008 17:09 GMT
Sean,

   What do you mean the same placeholder?  Do you mean the same location?
If that is the case, then what do you expect if the user controls are in the
same position?  One is going to have to overlap the other.

   What is the behavior you expect?  Do you have regions that you believe
are transparent on the controls which you think should reveal the controls
underneath?  If so, then how are you declaring those regions transparent?

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>I am attempting to dinamically add multiple user controls to the same
>placeholder based on information recieved from the database. Compilation
[quoted text clipped - 6 lines]
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com
Peter Bromberg [C# MVP] - 27 Feb 2008 21:32 GMT
Sean,
This really sounds like it belongs in the ASP.NET newsgroup, not the C#
language group. You can add any number of controls to a Placeholder control,
what you need to do is add say, an HtmlGenericControl("br") in between, or
any other way you want to separate the rendered layout of the generated page
HTML.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net

> I am attempting to dinamically add multiple user controls to the same placeholder based on information recieved from the database. Compilation works but both usercontrols are created one on top of the other. Any suggestions?
>
> From http://www.developmentnow.com/g/36_0_0_0_0_0/dotnet-languages-csharp.htm
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.