[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Tim Marsden

2/25/2004 1:06:00 PM

Hi

I would like to add controls to my page at runtime.
What containers can I use to host the controls?
I know I can add them to the form controls collection, but I need to have
control on where they are placed. For example I would like a page header and
footer, menu on the left, text on the right and an area in the middle where
I can add the controls, with the area sizing dynamically.

Hope you can suggest some options.

Tim


2 Answers

Scott Mitchell [MVP]

2/25/2004 5:51:00 PM

0

> I know I can add them to the form controls collection, but I need to
have
> control on where they are placed. For example I would like a page header
and
> footer, menu on the left, text on the right and an area in the middle
where
> I can add the controls, with the area sizing dynamically.

Tim, you can use a PlaceHolder control to specify where, precisely, the
dynamically added controls will appear. Check out this article:

Dynamic Controls in ASP.NET
http://aspnet.4guysfromrolla.com/articles/081...

Happy Programming!

--

Scott Mitchell
mitchell@4guysfromrolla.com
http://www.4GuysFro...
http://www.A...
http://www.ASPMessag...

* When you think ASP, think 4GuysFromRolla.com!


v-schang

2/26/2004 2:38:00 AM

0

Thanks for Scott 're reply and the informative suggestions provided.


Hi Tim,

I've noticed that you've also posted another thread in the ASP.NET queue
and I've also replied you in that one.
Please have a check and also feel free to post there if you have any
questions or need any help.



Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/de...