.NETGURU
ASPFriends.com 'aspngcache' list
Up to: Discussion Lists

  • RSS Syndication
  • Latest Discussions Archive
    Fragment caching a custom control (5 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngwebcontrols] to [aspngcache] by Let the good times roll bbilbro@hotmail.com Hi. Can someone tell me how to use fragment caching with a custom control? With a user control it is easy, I just add the OutputCache directive to the top of the page, but this cannot be done with a custom control. /joakim sundén
    I am trying to set up caching on this code and I get this error (3 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngdata] to [aspngcache] by Let the good times roll bbilbro@hotmail.com I am trying to set up caching on this code and I get this error If Page.IsPostBack False Then AnnoucementsSource Cache("Annoucements") if AnnoucementsSource is nothing Then Dim myCommand As New SqlDataAdapter("GetListofAnnoucements", myConnection) myCommand.SelectCommand.CommandType CommandType.StoredProcedure ' ...
    Caching VaryByControl: problems getting value of child control (2 replies)
    ASPFriends.com 'aspngcache' list
    Problem #1: Take a look at: http://www.learnasp.com/students/charlescarroll/sourcecode searcheruc cached.aspx and run the code. The good news is that the listbox output is cached. There are two ways to tell: 1. the trace.write dblist cached.ascx SUB Page Load start never gets called if caching occurs and/or 2. System.Web.UI.StaticPartialCachingControl appears at relevant places in the control tree...
    Turn off caching on server? (2 replies)
    ASPFriends.com 'aspngcache' list
    How can I be sure that the cache is disabled? Is there a way? I have used %@ OutputCache Duration 3D"1" VaryByParam 3D"None" % but was wondering if there were other ways to achieve this on the app or machine level (not via OutputCache Duration). Thanks. 20
    Caching User Specific Data In a Multi User App? (3 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Yannick Smits dotnet@stepcompany.com Hey Everyone I've got a page pulling back a result set that is user specific, and I would like to be able to cache it as a data view since the page gives a lot of options for sorting the data. I would like to insert the data into Page.Cache, but that is not user specific....My next thought was to add the data with...
    is it possible to cache aspx page EXCLUDING the user control within? (2 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Marcie Jones marciejones@yahoo.com How is it possible to cache aspx page excluding the usercontrols or server controls???
    Caching in a class (3 replies)
    ASPFriends.com 'aspngcache' list
    For some reason, this code returns an "Object reference not set to an instance of an object." error in the second line (in the example). This is in a class that doesn't import the Page or Usercontrol classes, so I have to define the cache class separately. It's in a readonly property of the class. Private myCache As Caching.Cache If myCache("myThing") Is Nothing Then myCache("myThing") MyItem End ...
    objects and caching (17 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Copied from [aspngarchitecture] to [aspngcache] by Cain Marco juggernaut@aspelite.com I have an object stored in session for each user visiting my site. I want to record clickpath info. Instead of writing to the DB every click, I want to write to a Cache copy of a DataTable and dump it to SQL every 5 minutes or so. Should I create an object to represent the DataTable, so I can call its constructor...
    Fragment Caching Strategy (2 replies)
    ASPFriends.com 'aspngcache' list
    Hi, In a common Content Management solution, content is created in a back end application and cached in the front end. Meanwhile, if the content is changed in the back end, the user is able to selectively flush this content (ie. remove it from the cache) in order for the new version to be displayed. (That's how we do it in Vignette !) After looking at the fragment caching in .NET, I can't see an o...
    Cache (6 replies)
    ASPFriends.com 'aspngcache' list
    I'm building a WebService to return partial pages. I'm trying to use the Cache with little success. What namespace am I missing. Thanks for any help. Error Message... The name 'Cache' does not exist in the class or namespace 'yyyZWs.About' Code... protected static string strGfw; [WebMethod] public string Gfw() { // Is it in the Cache strGfw (string)Cache["GfwAbout"]; // Found return the Cache Copy...
    Caching woes (6 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Marcie Jones marciejones@yahoo.com I have an aspx that streams an image to the client. That image is created dynamically, so I decided to cache. On my dev machine and on the QA server, the cache yields great results. However, when I add exactly the same Cache directive on the production server, there is no change, as if caching was disabled. Any thou...
    Custom control caching question (3 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Douglas Reilly doug@accessmicrosystems.net I have built a custom control that I have compiled into a dll and placed in the bin folder and registered on an .aspx page. All works fine. The control displays one random record from a database based on certain internal criteria, meaning I pass no information to the control. I want to cache the output of th...
    How long we can Cache? (16 replies, VIP)
    ASPFriends.com 'aspngcache' list
    To Cache, all we need is to add the following directive at the top of our ASPX page %@ OutputCache Duration "1000" VaryByParam "none" % And this 1000 is seconds, right? (around 16 minutes) How large can be this duration? If I give a very big value, then the will be cached for a very long time, right? If it is cached for very long time, do we have any memory/performance issues? Thanks, Das.
    What happen to "CacheItemPriorityDecay" Enum? (2 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Hi All, I've used the CacheItemPriorityDecay Enum with the Cache.Insert method in Beat2. Now this enum is gone. Any idea what happened? Thanks, Srinivasa Sivakumar
    NOT ANSWERED: Custom control caching question (2 replies)
    ASPFriends.com 'aspngcache' list
    I have built a custom control that I have compiled into a dll and placed in the bin folder and registered on an .aspx page. All works fine. The control displays one random record from a database based on certain internal criteria, meaning I pass no information to the control. I want to cache the output of the control and have it expire at midnight, every night, so that a new record is displayed ev...
    totally deactivate cache? (2 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Charles M. Carroll charlesmarkcarroll@yahoo.com Hello, I would like to totally deactivate the cache for some asp.net/c# pages. For security reasons, I do not want even some of the icons wich are displayed on my pages to be stored in some temporary directory. I've seen ways not to cache a page, in wich the client/proxy will always reload the page, but...
    Cache sizing, and partitioning (2 replies, VIP)
    ASPFriends.com 'aspngcache' list
    If I have a page that is cached; and the "generated HTML" takes up 10k, does this equate to 10k of memory or is this compressed? tc
    VaryByParams change requires an IIS restart? - bug? (3 replies)
    ASPFriends.com 'aspngcache' list
    Quick experimentation indicates that changing the VaryByParams value of the OutputCache directive requires an IIS restart to take effect. Anyone corroborate? Known bug? Env: w2k, .net rtm (sans sp1) Dan Green [ http://dotnetdan.com putting the dan in .net ]
    How do you prevent a page from caching? (5 replies)
    ASPFriends.com 'aspngcache' list
    Hi, Is there a way to make a page not cache at all? I've tried setting Duration "0" (in the %@ OutputCache ......% directive), but I get the error "The 'duration' attribute must be set to a positive integer value". There must be some obvious way to do this that I am overlooking. Any suggestions will be greatly appreciated. Thanks, Michael Bunger
    Odd and Puzzling Error (3 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Marcie Jones marciejones@yahoo.com i am storing loaded user controls in the Cache object. i can turn the feature on and off with a Web.Config setting. when i am using objects from Cache is seems to be affecting my response HTTP headers. the error message upon doing a Context.Response.Redirect is: "Cannot redirect after HTTP headers have been sent." i...
    Performance of Caching Data (4 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngdatagridrepeaterdatalist] to [aspngcache] by Bob Levittan blevittan@hotmail.com Hi all, I have a performance question. I have a report that will be returning two Different Datasets. The report will probably be using a DataGrid, and I will be using the sorting properties of the DataGrid. My question is this. After I initially get the datasets from the SQL server and populate the Da...
    Clearing User Control Cache (14 replies)
    ASPFriends.com 'aspngcache' list
    Is there any way to clear the cache so that user controls get re loaded? This is only really required during development. I have been making changes to a user control, but the changes aren't being seen on the page because the user control is being cached. Cheers, Julian Voelcker
    Output caching and file based expiration (2 replies)
    ASPFriends.com 'aspngcache' list
    I have a page that is using fragment caching via a user control. Everything is working fine. I would like however, to expire the fragment from cache based on an XML file sitting on the local drive. I want the fragment to stay in cache as long as this file remains unchanged. As soon as the XML file is updated, I was the fragment to expire, and be recreated. The only thing I can seem to find is sett...
    Data Cache implementation (2 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Does anyone know how the Data Cache is implemented? I'd guess that internally its a collection based object, such as a hashtable. We're looking at putting a large number of items into the Cache (1000) and were wondering how the lookup algorthim of the Cache would affect our retrieval times. Thanks "A guy who converts pints of Guinness into software." You might be one of them: http://www.lp.org/qui...
    OutputCache (3 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Marcie Jones marciejones@yahoo.com I've noticed that statements like %@ OutputCache Duration "43200" VaryByParam "none" % Can have a very strange effect on the use of debugging. When I was debugging a few web pages I knew I had added a debug line setup to an area that contained the output cache command but those lines were not even being scanned duri...
    NOT ANSWERED: How to NOT cache page (9 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Original Message From: Chan, Jasmine Sent: Wednesday, February 20, 2002 8:48 AM To: aspngcache Subject: [aspngcache] How to NOT cache page Hi all, I know that there has been a lot of talk about caching pages but what if I don't want to cache my page. In the classic, I have use the meta tags to define no cache but sometimes that is not really reliable. Is there a page directive in which you can sta...
    VaryByControl Caching problem w/ User Control & Properties (2 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Marcie Jones marciejones@yahoo.com Hi, This might be better on the caching list or usercontrol list, but not sure where. I have run into an issue that appears to be caching related as it only happens when caching is enabled in my user control. Here is the scenerio: We run a music retail site, so a lot of content is based on a particular genre. This i...
    Page Cache and FormatString Questions. (2 replies)
    ASPFriends.com 'aspngcache' list
    Copied from [aspngfreeforall] to [aspngcache] by G. Andrew Duthie (Moderator) andrew@graymad.com Hi All Page Cache Question: I have created 2 apsx pages, one displays information on a single row from a database, the other edits that same information. The problem I am having is that when I redirect the user back to the view page, the information is the old info but refreshing the page loads the rig...
    Accessing the Cache from a business object (2 replies)
    ASPFriends.com 'aspngcache' list
    Can someone point me to some documentation/examples on accessing ASP context from a business object? ie, Session, Application, and Cache objects? Thanks! Mike Best "A guy who converts pints of Guinness into software." You might be one of them: http://www.lp.org/quiz/ Help save us from the IRS: http:///www.fairtax.org Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings...
    Invalidate Output Caches (10 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Is there an easy way to invalidate all the output caches for a site? When I update my template I need to clear all the output caches (the template it a .ascx included in a .aspx which is doing the caching). Thanks, Ryan
    First Load Time (2 replies)
    ASPFriends.com 'aspngcache' list
    Hi all, When I attempt to access my pages for the first time the load time always seems to be excessive (relatively), but once the aspx page has been accessed once it is much faster (and not just do to the OutputCache settings that we have). Is there a way to force these pages to be initialized automatically rather than having the first user bear the brunt of the load time burden? Thanks, Race Byx...
    Caching User Control Across Pages (2 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Hello all, I've searched the archives a good bit, but havent found this question directly addressed. I'd like to cache a user control across several pages (for example, a control with 2 list boxes, with available States and Cities). Is this possible, or is such Fragment Caching limited to a single page, ie, a control is only cached for a single page, and another copy would be cached for a second p...
    Caching User Controls (2 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Charles M. Carroll charlesmarkcarroll@yahoo.com This is a multi part message in MIME format. NextPart 000 000A 01C1A5B1.E20D2030 Content Type: text/plain; charset "US ASCII" Content Transfer Encoding: 7bit Had anyone seen the following attribute in B2 which can be used on User Controls in code behind pages? In V1.0 it looks like you can add this to y...
    Hi ... Suggestion (2 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngfreeforall] to [aspngcache] by Charles M. Carroll charlesmarkcarroll@yahoo.com Hi , I am crafting an high end enterprise application using .NET tech. Just thought to take all of u r opinions. My design should be flexible enough in scaling up i.e. adding more no of servers ( clustering & load balancing ). To improve the performance most of the data needs to be cached but cached dat...
    Application vs. static state (3 replies)
    ASPFriends.com 'aspngcache' list
    In a previous thread, Mr. Rob Howard has done a superb job of talking about the Application vs. Cache objects. What about Application object vs. static fields. If we have a class that needs encapsulated shared state, is there a reason to use the Application or Cache objects instead of just static fields? Dan Green [ http://dotnetdan.com putting the dan in .net ] Original Message From: Rob Howard [...
    Cache unavailable (5 replies, VIP)
    ASPFriends.com 'aspngcache' list
    I have created a class and added it to my ASP.Net project. I am trying to use ASP.Net cacheing from this class, so I inherited the System.Web.UI.Page, so that I could use it. It builds okay, but when I go access the page from the browser I get a "Cache not available" error. My code is below. Can I not add things to and get things from the cache from a class added to my web project? Can I only use ...
    create an object on every page, or save it in Session? (6 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Situation #1 would create a User object, populate it from Session variables (which were populated from a single DB hit on Session Start), and destroy a User object on every Page Load. Situation #2 would create a User object for each Session only once, on Session Start, and save the User object in the Session object, which would be destroyed when the Session timed out. Either way, the DB is hit onl...
    cache business objects tied to a user in Cache or Session? (5 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngarchitecture] to [aspngcache] by Charles M. Carroll darthcarroll@asplists.com Is it more efficient to cache a business object, say a User or Member class, in the .NET Cache object (keyed by the user's SessionID), or directly in the user's own Session object? Francesco Send and receive Hotmail on your mobile device: http://mobile.msn.com
    Caching (4 replies, VIP)
    ASPFriends.com 'aspngcache' list
    I have an XML file that is used as a template to derive other XML files from. So, the process starts by loading an XML file into an XMLDocument, making some changes, and then persisting to another file on hard disk. My question is how might I go about using caching to increase the performance of loading the original XML template that never changes? Thanks! Jon The information contained in this com...
    caching scalability (3 replies, VIP)
    ASPFriends.com 'aspngcache' list
    If I were to cache say 300 pages for 1 week at a time, would this slow down the site or will it be EXACTLY like static pages?
    using XML in Cache... (3 replies)
    ASPFriends.com 'aspngcache' list
    Moved from [aspngdata] to [aspngcache] by Charles M. Carroll darthcarroll@asplists.com Has anyone read Dino Esposito's article in Dec 2001 MIND about using XML files as Caches? Looks very interesting....does anyone agree that it is a very scalable solution? Is caching data in XML files slower than using a standard Cache? Francesco Get your FREE download of MSN Explorer at http://explorer.msn.com/i...
    OutputCache not working (6 replies, VIP)
    ASPFriends.com 'aspngcache' list
    My OutputCache does not seem to be working: aspx file %@ Page language "c#" Codebehind "WebForm1.aspx.cs" AutoEventWireup "false" Inherits "Dev.WebForm1" % %@ OutputCache Duration "10" VaryByParam "none" % HTML body form id "Form1" method "post" runat "server" % Response.Write(DateTime.Now.ToString()); % /form /body /HTML I have also copied an entire example from the quickstarts word for word and ...
    Localization and cache (6 replies)
    ASPFriends.com 'aspngcache' list
    Does custom output caching in ASP.NET allow me to cache on the basis of the culture of the page? e.g. if I have URLs like article.aspx?id 123, I can cache for each value of the id parameter, but can I also split the caching to cover each copy of the page in the languages supported by article.aspx (e.g. if article.aspx uses Thread.CurrentCulture to display different content)? Ollie ollie@cornes.org...
    caching the SqlCommand Object (3 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Hi all, I have some interesting behavior, and was wondering if you can help me. I'm caching SqlCommand objects (just the commandText and command parameters). Then when I want to use a SqlCommand, I just pull it from the Cache, add the connection , and loop through the parameters collection to add the values. Then i perform a cmd.Execute and close my connection. What I'm finding is that the command...
    Session vars verse cache (4 replies)
    ASPFriends.com 'aspngcache' list
    Are people still using session variables to hold information specific to a user. I'm just starting to build out the user access for a site. I built a User Object and thought I would put it in cashe until the information is needed. Seems the Cache is more like an Application variable. Each user that got into the system overwrote the pervious object. Was wondering what other people are doing?
    Caching problem (4 replies)
    ASPFriends.com 'aspngcache' list
    Hi all I am testing the OutputCache and everything works fine on my develop machine. %@ OutputCache Duration "10" VaryByParam "*" % .... BUT, moving the files to another server and another URL, does everything but the OutputCache work. I got no errorcodes, everything seems to work, but the page is clearly not cached. Any suggestions what to do. (IIS settings,web.config params ??) Thanks /Per Gullb...
    Can Someone Explain This Caching Behavior (4 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Hello, Is output caching supposed to serve page refreshes from the cache or is the page re run? I have a very simple test page that does send the cached response if I retype the url in the browser or if I access the page from a second browser window. If I open the page, and then hit the refresh button on my browser, then the page is re run every time I hit the refresh button, and I do not get the ...
    Expiring Cached values due to changes in a db (7 replies)
    ASPFriends.com 'aspngcache' list
    I am looking for a way to expire a cache when data in sql server changes (through the use of a trigger, extended sproc, or ole automation object) I can write my own OA object to do this but i'm looking for a better (and more reliable) method. Ron
    Caching Question (3 replies, VIP)
    ASPFriends.com 'aspngcache' list
    Copied from [aspngarchitecture] to [aspngcache] by Charles M. Carroll darthcarroll@aspfriends.com Hello All, I would like to put an output caching directive in an ascx file so that my user control is fragment cached. I then need to be able to explicitly expire the cached version of the ascx control. I would need to expire based on some user action, NOT based on time or browser type. I have thought...
    Output caching not working (2 replies)
    ASPFriends.com 'aspngcache' list
    For some reason I can not get output caching to work. I have tested the feature using code from the quickstart tutorial: http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path /quickstart/a spplus/samples/cache/outputcache1.src http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path /quickstart/ aspplus/samples/cache/outputcache1.src but it does not work. I get fresh pages with each...
    Visit the archive for messages from this site.
  • July 2001 (3 items)
  • August 2001 (1 item)
  • September 2001 (1 item)
  • October 2001 (6 items)
  • November 2001 (5 items)
  • December 2001 (6 items)
  • January 2002 (10 items)
  • February 2002 (4 items)
  • March 2002 (7 items)
  • April 2002 (3 items)
  • May 2002 (8 items)
  • June 2002 (2 items)
  • July 2002 (2 items)
  • August 2002 (4 items)
    Ad


    Need Dot Net Interview Questions?
    Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
    .Net Projects
    Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
    Free .net Help
    Commission ExamGuru, Inc. and his team for your next bespoke software project
    FogBUGZ
    The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
    Awesome Tools
    If you don't know about these, you're missing out... IT Certification Questions
    IT Interview Questions
    Free Oracle 10g Training
    MCSE Boortcamp
    Cisco Study Guides
    Cheap Study Guides
    Exact Questions
    Dot Net Interview Questions
    Oracle OCP
    Cheap Travel
    Designer Perfumes - Wholesale Prices
    Free Programming Tutorials
     
    ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
     Copyright © ExamGuru, Inc. 2001-2006
    Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification