Insert same ASCX mulitple times on a given ASPX

G

Guadala Harry

My intent is to load a user control (programmatically - not declaratively)
into two or three locations on an ASPX page when the page is first
requested. Each "instance" of the user control would display different info
based on property settings that are set by the ASPX page's code-behind
logic.

Would this cause my server to explode - or is this an okay thing to be
doing?

Thanks.
 
R

Roger Helliwell

This is perfectly fine... each control has it's own set of properties
and viewstate, so there will be no problems. It's just like putting
multiple <asp:Textbox> 's on the same page.
 
J

James Doughty

There shouldn't be a problem, I have app that about 25 declaritvly
created controls, it's slow to intially load but after that everything is
cached and it loads quickly.

James Doughty
 

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

Top