473,804 Members | 3,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom control caching

I was recently searching for a solution on how to perform an output
caching-like solution on a custom control. Obviously the OutputCache
directive wasn't available, and I tried using the Response's Cache
object but to no avail. I had looked in every ASP.NET book I have
(1.0/1.1/2.0) as well as tons of online articles and found no mention of
anyone caching custom controls. Finally, by mistake, I stumbled upon the
PartialCaching attribute, and after reading it's description on MSDN, I
noticed it was mentioned only to be used on user controls. I decided to
try it anyway on my custom control and it worked quite nicely, giving me
the exact effect of what I wanted. My question is, is this a known
solution for caching custom controls, and is there a better, more
suggested way of doing this that I haven't found? Any comments would be
appreciated, thanks.

----

Jonathan Carter
Programmer/Writer/Music Fanatic
Dec 3 '05 #1
0 1150

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1285
by: Joe | last post by:
I am having a hard time with setting a property on a custom server control that i am placing in a repeater. The control inherits from DropDownList. The property is being set in the repeater using the DataBinder.Eval method. I can write that value out to the screen, however, it is not available to the control. I think it is a problem with the databinding of the repeater making data available to the custom control too late. Below is a...
3
3863
by: Ryan Moore | last post by:
I am trying to "tune" some user controls in ASP.NET for optimal caching. Is it possible to do a vary by param - on a Session Variable, so the page caches when a Session variable stays the same, but refreshes when the session changes? thnx
3
1942
by: Dennis M | last post by:
Hey everyone, I am curious what the performance impact of a custom control would be if it had a significant hierarchy of children. For example, 40 child controls, 5 levels deep, each control on average has 20 properties. What would be the best way to implement such a thing? The book I am reading uses templated controls and basically reconstructs the entire hierarchy everytime page is accessed based on the tags in the .aspx file, but...
0
959
by: Henri | last post by:
Hi, this is what I'd like to do : - Build a XML document at user's first visit of the page from a DB's data - Cache this document so that there's no need to buit it again. The document would stay cached as long as the user would stay logged in. - This cached XML would be used by a custom control in several pages I'm new to ASP.NET so I don't know if there's any feature that could do this caching automaticaly ??? And I don't what is the...
0
869
by: Henri | last post by:
Hi, this is what I'd like to do : - Build a XML document at user's first visit of the page from a DB's data - Cache this document so that there's no need to buit it again. The document would stay cached as long as the user would stay logged in. - This cached XML would be used by a custom control in several pages I'm new to ASP.NET so I don't know if there's any feature that could do this caching automaticaly ??? And I don't what is the...
0
1037
by: Simon Prince | last post by:
Hi I have created a .NET "Windows Custom Control" which is used an ASPX Web Form. It is referenced with the code, from a ASPX page. ************************************************** <object id="myComponent" classid="http:#"
1
2292
by: aspnet20vb_mike | last post by:
I have a Custom Control which inherits from GridView. I call it GridViewSort and it is in a namespace "PDS.WebControls". I add it to the Toolbox, drop it on my WebForm and it shows up and works fine. But when I define a skinID for this Custom Control, I am getting an error when it compiles. I tried adding the Register directive in the skin file but that doesnot help.
2
4656
by: Cramer | last post by:
I'm creating a custom handler that does not extend Page (only implements IHttpHandler) - and I would like for its output to be cached to improve runtime performance. I would like to leverage ASP.NET's output caching capabilities that are already in place for standard Page requests. How can I leverage the existing output caching mechanisms with my custom HTTP handler? I'd like the standard output caching options to be available, if possible...
4
1725
by: Jordan S. | last post by:
In a "standard" aspx page I can access the system cache (System.Web.Caching.Cache), like this: Cache = someObject; How can I access the same Cache from *within* a custom composite Web server control I'm writing (that lives in it's own assembly) that is dynamically added to a page at runtime? What do I need to do with the custom control or it's containing assembly to enable it to access the Cache of the hosting Web application?
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10326
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10317
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9143
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.