all groups > asp.net caching > august 2004
Session state lost after accessing database
Posted by William at 8/28/2004 6:01:03 PM
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 ... more >>
recycling app pools.....
Posted by Ollie at 8/26/2004 11:47:43 AM
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
... more >>
Caching Application Block
Posted by Harry Simpson at 8/26/2004 10:40:18 AM
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
... more >>
Sooo slow.....
Posted by Paul King at 8/25/2004 12:08:05 PM
Hi there..
I have created a ASP.NET datagrid which fetches back 8 records from a SQL
db. The issue is that when the page is initally executed this can take up
to 5-15secs to load.
I understand that it has to compile the ASP.net code - but is there any way
to speed this page up or at least ... more >>
Erase cache variable at predefined time
Posted by rbscheer NO[at]SPAM my-deja.com at 8/24/2004 1:16:04 PM
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 con... more >>
Issue with login-password in a web page
Posted by Rheadore at 8/23/2004 6:30:26 PM
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.
... more >>
Object of cache never freed
Posted by Xavi Sam at 8/23/2004 2:03:26 PM
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 adva... more >>
blank pages & RegisterStartupScript
Posted by Ollie at 8/23/2004 10:05:10 AM
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 ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Accessing ASP.NET Cache from multiple threads
Posted by Michael Vanhoutte at 8/21/2004 4:15:02 AM
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 d... more >>
Cache expiration one minute off?
Posted by fm NO[at]SPAM newsgroups.nospam at 8/20/2004 2:27:02 PM
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 Sh... more >>
absolute expiration doesn't expire cache
Posted by Dicky Cheng at 8/13/2004 10:05:02 AM
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 ca... more >>
Add A Web User Control to Server-Side Cache
Posted by MLibby at 8/10/2004 6:21:03 PM
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.To... more >>
want to save cache object in application_end() method
Posted by Dicky Cheng at 8/9/2004 6:28:23 PM
Hi, I am using ASP.net built-in Cache object, and i store a lot of cache
objects for saving database accessing time. When my application start, i
will load saved cache object to the Cache object, and when the application
end, i want to save all cache object to the disk. Unfortunately, the Cache
... more >>
FormsAtuthentication.Signout
Posted by abbas mukadam at 8/5/2004 11:54:22 AM
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... more >>
|