Nested user controls and performance implications

A

aarf

Does anyone have an opinion or fact if nested user controls are a best
practice, especially if you want performance from the page?

I've seen pages that nest about 4 levels of user controls.

Thanks
 
G

Guest

When the page builds the Control tree and needs to make more recursive calls
to complete it's work, that by definition means it takes more time.

There are many other factors involved - the size and complexity of the
controls, whether they use ViewState, etc.
Peter
 
S

Steve C. Orr [MVP, MCSD]

I don't think nested controls are normally much of a performance issue,
although there can be some exceptional situations.
I'd say it's usually more about how many controls you have on your page and
how complex and efficient they are. Their relation to each other (nested or
not) is usually of little consequence.
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top