Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8535723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:29:56+00:00 2026-06-11T10:29:56+00:00

Currently, I have got 7 user controls placed on a single aspx page, some

  • 0

Currently, I have got 7 user controls placed on a single aspx page, some of which are created as Menu, Footer, or Header, etc.

I am just wondering if it’s a good practice to always take advantage of web user controls to separate different page components. Would there be any real impact on the performance, e.g. on page load or server responsiveness, etc, if there’s relatively large numbers of controls going to be used on aspx pages?

I have also noticed that @ OutputCache is an option for caching user controls, so is it good idea to apply @ OutputCache for Header, Footer and those kind of user controls?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:29:58+00:00Added an answer on June 11, 2026 at 10:29 am

    Premature optimization is the root of all evil

    – Donald Knuth.

    Do not use output caching, or any other form of optimization unless you have evidence gained from profiling that you need to use it. Output caching is really more to prevent needing to hit a database back-end for commonly-accessed, non-personalized webpages, like a high-traffic frontpage.

    There is nothing inherently wrong, performance-wise, with using UserControls – everything gets compiled behind-the-scenes into a high-performance assembly that returns text via an output buffer writer directly. The only “cost” of using a control is an additional vtable call to the Render function, and the extra bytes each control’s state uses in-memory. i.e. it’s negligible.

    During a page’s lifecycle, the step that uses the most time is invariably hitting a database or external web-service. Rendering a completed page takes around a millisecond or less. Enable output tracing if you don’t believe me.

    That said, I question why you’re using UserControls for common site areas, like a header and footer – this is what MasterPages are for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have currently got imagepaths stored within the database and image files stored in
Currently I have create a website using codeigniter. I got a message error every
Currently have a drop down menu that is activated on a hover (from display:none
I currently have a table of concentrations, which are linked to a table of
I am working a project currently in which the user can add multiple news
I have a parent form, which contains panels that calls different user control. For
I'v got a combobox that I created as a user control(it's actually made up
I've got a page with several controls, such as Checkboxlists and two containers holding
Working on a project with a setup like this: ASPX Page User Control 1
I've got a user control which lets users provided their own script names that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.