By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,918 Members | 1,662 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,918 IT Pros & Developers. It's quick & easy.

Nested user controls and performance implications

P: n/a
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

Nov 10 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"aa**@jonathanpadilla.com" wrote:
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

Nov 10 '06 #2

P: n/a
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.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

<aa**@jonathanpadilla.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
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

Nov 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.