| Session state lost after accessing database (9 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi I have an ASP.NET application that connects to an Access database. Everything works fine except for the Session object. Data in the session object is lost after I've made a call to the database. To test, I've created two test aspx pages. Test1.aspx contains two buttons. The first button sets values in the session object and then navigates to Test2.aspx. Test2.aspx only displays the values in th... |
|
| 15 second and forward (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, I would like to ask if someone knows how could be accomplished that: When a user goes to WebForm1, he/she stays ther for 15 sec and that automatically goes to WebForm2? Thank you in advance! Viktor Outgoing mail is certified Virus Free. Checked by AVG anti virus system (http://www.grisoft.com). Version: 6.0.751 / Virus Database: 502 Release Date: 02.9.2004 a. |
|
| Where are cached objects stored? (7 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| It may sound strange, but I am not able to find any technical material that talks about where the cached objects are stored. Are they stored only in memory or somewhere in form of disk files? MSDN and many articles only talks about the grammar and its usage scenarios. I am implementing customized ViewState thru SavePageStateToPersistenceMedium/LoadPageStateFromPersistenceMedium, and I store ViewSt... |
|
| Manually refreshing the Cache (5 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| I am using Page Output Caching by using: %@ OutputCache Duration "6000" VaryByParam "None" Location "Any" % I would like to force caching to refresh all pages or specified pages in my website. I realize there are various ways of setting the time limit, etc. for a cache. Basically I want some pages to be cached "forever" but I need to be able to manually force a refresh of all pages by running an a... |
|
| Accessing ASP.NET Cache from multiple threads (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| I was wondering how multiple threads can access the ASP.NET cache object safely. Take for example the following code that I got from the ASP.NET Cache object documentation: DataView Source (DataView)Cache["MyData1"]; if (Source null) { // Connecting to a database... // Filling a dataset... Source new DataView(ds.Tables["Authors"]); Cache["MyData1"] Source; } MyDataGrid.DataSource Source; MyDataGri... |
|
| blank pages & RegisterStartupScript (3 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| I use javascript to open a child window from the browser (window.open.....) this is then registered with the system using Page.RegisterStartupScript, it display the child peffectly fine. The problem is that all the links on the parrent (main) window now display a blank page when clicked on, they work perfectly fine before the popup window is displayed. Anyone got any ideas why? Could it have anyth... |
|
| FormsAtuthentication.Signout (3 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Here's the problem: I have a start page called Main.aspx. I use forms authentication. Initially when the user logs in it goes to Main.aspx After calling FormsAuthentication.Signout i have Response.Redirect("Login.aspx"). When user logs out he is presented with login.aspx So far fine. However, when the user logs in AGAIN, this time, instead to going to Main.aspx, it looks for defualt.aspx and gives... |
|
| Application state vs. Cache API (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, I need to cache infrequently changed data used by the entire application. Does anybody know whether using Application state (Application["YourGlobalState"] somevalue;) or the Cache API (Cache.Insert) is more preferable? Thanks a lot Daniel |
|
| output caching / fragment caching for language specific (2 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| I am trying to use output caching on a fragment of a page that contains a lot of % RM.GetString("blabla")% statement to handle localization. So I need to make sure that the output cache is caching one version per language. I tried the following code without success: on the aspx, the user control is invoked this way: Cached:ChaSupCached lang " % System.Globalization.CultureInfo.CurrentCulture.ToStr... |
|
| LoadControl bug? (5 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| A similiar question was posted 2003 03 19 but with no replies. I have an application that loads about 15 user controls some of which are cached. As I like to write generic code I have decded to encapsulating the logic of loading the user controls into a single method. In doing so have hve encountered a problem that is driving me nuts. I have been able to duplicate the problem in a small test harne... |
|
| recycling app pools..... (2 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| When an application pool is recycled in IIS 6.0, What happens to the HttpContext.Cache in an asp.net application, Does it persist across the recycle? Cheers Ollie |
|
| Clearing cache in seperate app domain (4 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Is it possible to clear a Cache outside of the current application? The reason why I ask is because due to seperate reasons our website's admin section is a virtual directory of the site. This I believe makes it a seperate application from the root site. Now on the root site there are certain data caches for offers, manufacturers, etc. which the admin side should be able to refresh by clearing the... |
|
| Infragistics Ultra WebChart Overflow problem (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, I am using infragistics Ultra web chart to generate line charts. I get an overflow problem when the values of the first point and second point are same in my data. I tried to catch an overflow exception but does not catch an exception but still gives an exception The error is as follows Overflow error. Description: An unhandled exception occurred during the execution of the current web request... |
|
| absolute expiration doesn't expire cache (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, I am using absolute expiration to expire my cache object in Cache API. And I set it to expire after 60min. Then I test it, it cache, and everything fine. Then I stop working and lock computer (pc still running), then leave office. Second day I come to the office and unlock computer, the cache still doesn't expire! (It already exceed 60min). And I use the cache, and it still working. And after ... |
|
| Issue with login-password in a web page (3 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi , Please give me any links/examples to create a page which can store my password in cache, call that cache when I enter my userid, automatically insert my password in the text box later. Please suggest. |
|
| Web application restarts when cache changes (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| (Type your message here) Hi all, I have created a cache in dependence of a directory. The cache stores an arraylist of the names of the subdirectories. For obvious reason, the dependency class monitors changes in the directory such as renaming, creation or deletion of sub folders. However, the web application gets restarted when I rename these sub folders. Why is that so? How can i prevent the web... |
|
| Object of cache never freed (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi If I have this simple code: Cache["MyObj"] new MyClass(); Application["MyObj"] Cache["MyObj"]; I suppose that the object NEVER will be freed of cache because always will be a reference to the cache object, the application object. Am I in true? Thanks in advance Javier |
|
| Erase cache variable at predefined time (2 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi. I have a cache variable that holds some strings for my application. During its use, this variable grows, holding several strings. I would like to erase the contents of this cache variable every day at 6:00 PM. I tried the absoluteexpiration property but could not find the right way to configure it. I don't want to remove the cache variable, just clear its contents. How can I do that? Thanks, R... |
|
| Add A Web User Control to Server-Side Cache (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| I want to add a web user control to server side cache using the following code... TextWriter tempWriter new StringWriter(); Control control LoadControl(acUrl); control.RenderControl(new HtmlTextWriter(tempWriter)); sb.Append(tempWriter.ToString()); Context.Cache.Insert(acUrl, sb.ToString(), null, DateTime.Now.AddSeconds(seconds), TimeSpan.Zero); It works, almost! The web user control's code behind... |
|
| Cache expiration one minute off? (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Okay, what am I missing? For some reason, when I set an absolute expiration time it is always one minute longer for which I stated. I have tried it on a few XP machines. Obviously there is a flaw in my logic I can not see. Here is the code that you can paste into Global.asax: Private Shared nextTime As DateTime Private Shared Sub MyCacheCallback( ByVal key As String, ByVal value As Object, ByVal r... |
|
| Caching Application Block (2 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Anyone using this? I originally thought just use the ASP net cache for web apps and the CAB for Win apps but I suppose you could use the CAB for both. Ideas, opinions? TIA Harry |
|
| setting properties on cached user controls (3 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hello, I have a problem with setting the properties on my user controls when I am also caching them. I have come to the conclusion, after reading many of the posts here in aspnet.caching, that there is an implementation problem in the .NET Framework that prevents the required casting. So, I'm really posting this to (a) see if anyone has any workarounds and (b) to try and jolly along the project te... |
|
| HttpContext.Cache.... (4 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| If I have set the session state for an asp.net application to be out of process how does this affect the HttpContext.Cache? What I want to know it is possible to store the Cache out of process as well? Because I read in MSDN that: One instance of this class is created per application domain, and it remains valid as long as the application domain remains active. Information about an instance of thi... |
|
| View State (4 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, I am trying to use ViewState to store a strongly typed list derived from CollectionBase and it fails because it says it needs to be Serializable, or must have a Type Converter, how can, or where can I find some info to help me to do this? TIA Colin Basterfield |
|
| IE Back Button/Cache Problem Using UserControl (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hello, I'm using a dropdownlist webcontrol that interacts with an html table runat server) in an ASP.Net user control. Basically, the user selects an option in the dropdownlist which posts to the server via the SelectedIndexChanged event. The event procedure then performs a database lookup and adds some stuff to the html table object. Works as expected except that when the back button is used, the... |
|
| (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| I get following error when the website is idle..but if I reset it (iisreset)..it goes...can you please help with this error.. Field not found: PerfProgRpt.UserControls.DateAndTA.RadTree1. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Deta... |
|
| Cache.SetExpires() and response-head: Expires: inseperably linked? (2 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hello all I have some items that require long expiration date (weeks, months etc) so they stay cached in proxy/clients for a long time as the object infrequently change. However I do not wish for the object to stay in the output cache for more than an hour due to server resources and demographs of usage. Are these two properties completely linked, i.e. is the output cache merely acting as a proxy ... |
|
| slow pages after certain amount of idle time... (3 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| I know about and expect the first time an asp.net is viewed that the JIT compiler willc ompile the page and hence the slow response time for the page, but after a certain amount of time my asp.net is very slow to load a page again and then everything is fine again why is this? Cheers Jim |
|
| Custom Web Control (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| How do i enable caching for a cutom web control. |
|
| Postback and smart navigation (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hello I have a small form with dropdownlists and textboxes. Dropdownlist accepts postback. When I select value from list located at the bottom (I must scroll to see it), form reloads but I can see header not the list. I set SmartNavigation TRUE but it does not help. How can I solve this uncomfortable behaviour? thanks Jacek |
|
| Is cascading style sheet cached? (2 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Pardon me if it is posted on the wrong board, as I can't find a board for cascading style sheet. I have a customized style sheet in my vsnet project. When I add new classes in CSS and apply them to the design page, the page doesn't update accordingly. If I close the visual studio, and re open the page, the page updates. It looks like the style sheet is cached. I am wondering how to refresh the sty... |
|
| Unable to prevent image caching (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| I have an image whose ImageURL is constant. On the same page is a control that allows the user to upload an image to the location the URL points to. When the user uploads a different image, the image displayed remains the same because the image with that URL has been cached. I need to force the image to be refreshed every time the user uploads a new image. I have tried Response.Cache.SetCacheabili... |
|
| Cache Priority for User Controls (4 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi there, Is it possible to set a cache priority for user controls in the OutputCache directive? Thanks, Tom |
|
| The right way to cache (6 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, I have a user control that generates a menu. The menu changes depending on the type of user that logs on. The user's type is stored in a cookie which I set from my login page. Now, on all my pages (except the login), I have put in a user control that I created which generates a menu for the user depending on the user's type in the cookie. I would like to cache this control for the current sess... |
|
| absoluteExpiration less then a minute... (3 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hello! I try to set absoluteExpiration in time 10 seconds. But I have 60 seconds anyway! Here is the code: Context.Cache.Add("timer",t,null,DateTime.Now.AddSeconds(10), Cache.NoSlidingExpiration, CacheItemPriority.High, new CacheItemRemovedCallback(refreshCachedContent)); How to set absoluteExpiration time less then 60 seconds? thanks, Nikk |
|
| Custom class loaded from cache returns an object by reference (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| The item was not posted first time trying again... Hi, I have a problem with a custom class of mine. My situation is this: I have a class public class Something { public int Id; public string Text; public ArrayList arrList; New(int IdToRetrieve) { if(Cache[IdToRetrive.ToString()]! null) { Something s (Something) Cache[IdToRetrieve.ToString()]; this.Id s.Id; this.Text s.Text; this.arrList s.arrList... |
|
| Caching.CacheDependency Problem (2 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| I have the following code: myCache CType(context.Cache(cacheName), WebControls.Table) If myCache Is Nothing Then callProcessMenu() context.Cache.Insert(cacheName, ucTblMainMenu, New Caching.CacheDependency( ucXMLSchema))) myCache CType(context.Cache(cacheName), WebControls.Table) Else 'Read from Cache End If In the above code ucXMLSchema points to a file on the machine. When I delete the file the ... |
|
| How to Cache a user Control? (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hello I have a User Control which i used on each page of whole webapplication. i want to cache that control so that web application become speedy. I am new to implement asp.net Cache Facility. Kindly help me to carry out this task. Thanks |
|
| caching images (corrupting) (4 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, I have a dynamic image generation code that uses the Graphics and Bitmap objects to create a .jpeg output. The first time the code runs the image is correctly generated and added to Cache("MyImage") and to my web page, but when I run it again, the image is not regenerated, it's retreived from the Cache("MyImage") object, and it seems to be corrupted. When I create the image and add it to the c... |
|
| preview thru cache (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| My CMS users need to be able to preview the content they input without getting a chached version of the page. For example if my editor wants to change spelling error in her spiderman2 review she would preview the page (review.aspx?review id 1) and not see that change until the cache expired. Any suggestions? |
|
| Infragistics Ultra WebChart (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, I am using Ingragistics UltraWebChart and I am generating a webchart object and binding a dataset to the chart and adding chart to panel.I am generating a line chart and I want to get the value of the anchors on the chart. Posted by a user from .Net Guru (http://www.dot-net-guru.com/) Id x8Z5D stc0iGqt jU/ruBA /Id |
|
| Refreshing without resubmitting (5 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| When form data is submitted to an ASP page using the POST method, it is not visible in the URL, but it is still resubmitted if the user clicks the Refresh button. This can cause statistical data to be accidentally submitted multiple times, making the results incorrect. I would like like the user to be able to click the Refresh button without resubmitting the form data. Is there some way to "erase"... |
|
| want to disable back button functionality in Asp (6 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi friends I am facing one problem. I know its possible but Dont know how to do it. I have one page where I am getting some values from user. After user submit this form to one java servlet, it returns me some responseText which I am displaying to the user. On this page if user presess the back button of browsers, it is going again on previous page and place the figures to java servlet, which is d... |
|
| Caching a user control (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, I have written a user control that generates a menu depending on the type of user that has logged in to my site. The information about the user is stored in a cookie. The control works great, but now I want it to be cached as it will always be the same for a particular user group. So I tried adding an OutputCache directive to the control with VaryByParam "none". So far so good. It gets display... |
|
| Clear Browser Cache (8 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, Is there a way to clear the browser cache programmatically, i'm my page, i have written nothing to cache anything. i want the page to load a fresh everytime. kindly give in your comments. Pradeep |
|
| Need to break cache to preview (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Basically I need for users of my CMS to be able to preview pages live right from the DB. They're always making little changes so that text lines up correctly etc and they want to preview the changes often. If i cache the pages they can't preview them. Is there a way i can break the cache just for these previews? |
|
| Variable Cache expiration (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hello, I have a question about ASP.NET caching features. I have a page with output caching directive like this: %@ OutputCache Duration "360" VaryByParam "ID" % So page is cached for every ID in querystring I send the following requests: Foo.aspx?ID 1 Foo.aspx?ID 2 Foo.aspx?ID 3 Foo.aspx?ID 4 Now there are 4 versions of foo.aspx in cache The question is that, can I expire the cache for ID 3 and le... |
|
| help me (2 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi,i'm a chinese. Who can tell me where has news which is chinese. I'm poor at English. |
|
| Data Access caching (3 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Hi, What would be the best way to populate a drop down list, I use a three tier design, build a business object after retrieving sqldatareader from the database. then after adding to the drop down as a listItem, I add this to the cache. I found this to be faster than a dataset being bound directly to the control. any opinions here? In addition, I also tried to add a sqldatareader to cache, but for... |
|
| Caching Dll's in ASP.NET (3 replies) |
| microsoft.public.dotnet.framework.aspnet.caching |
| Heavily used web site written in C#/ASP.NET. All pages in all sessions use object that writes tracking information to database. What is best approach? Do I need to lock the object on each use? Do I need to provide multiple copies of the object in the application cache? etc. Can you point me to any resources on this topic. |
|