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 8885641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:21:36+00:00 2026-06-14T21:21:36+00:00

Asp.net Is it possible/bad idea to store server controls in the cache? Is it

  • 0

Asp.net Is it possible/bad idea to store server controls in the cache?

Is it a bad idea to create a control ie: HtmlGenericControl and then add it to the Page.Cache and then retrieve it on OnInit() and add it to the pages controls collection?

Or is it better to use ParseControl?

  • 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-14T21:21:37+00:00Added an answer on June 14, 2026 at 9:21 pm

    It is rather dangerous. Every time the page is invoked you get an instance of it. This instance will have the instances of all controls the designer put in. If you store the instance of the control in the cache you may get into a situation where multiple instances of a page will share the instance of the control. You need to be careful what goes into this control data portion because it will be also shared

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

Sidebar

Related Questions

is it possible with basic ASP.net controls or Telerik's RadControls to get a two
Is it possible to create ASP.NET MVC applications in VS 2010? What should I
Possible Duplicate: Using ASP.NET Controls without databinding My previous question yielded few results so
I'm using the asp:Menu control on an ASP.NET 4.0 Webforms page with table-free rendering
Possible Duplicate: Why in ASP.NET is a button click event executes when page is
Is it possible to restart server from ASP.NET application that is hosted by LocalSystem
can i know how to work with sitemap path in asp.net is possible examle
Using iTextSharp (and c#/ASP.NET) is it possible to open an RTF document, manipulate it
Is it possible to do TDD on asp.net MVC 3? And if so, what
Possible Duplicate: ASP.NET MVC3 how to excute action method of controller using timer with

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.