BTW, if you're actually setting HttpCacheability.NoCache on a page, then you're actually telling browsers (and proxy servers) not to cache that page, which means that browsers will be unable to redisplay that page from cache (and will tell you so -- that the page has "expired" -- if you try)...
Main Topics
Browse All Topics





by: ThogekPosted on 2008-03-17 at 11:16:31ID: 21144676
For #1... /en-us/lib rary/2d449 f1x.aspx. System.Web.Security.Member shipUser's GetUser method might work for what you're looking for.
It might be good to make sure that you're familiar with the various classes related to ASP.NET membership, some of which give give various ways to access the current logged-in user's info (and, thus whether there is a current logged-in user). See http://msdn2.microsoft.com
For #2...
I think what you're running into is the simple fact that most browsers simply do not cache pages that were the result of POST requests. These include ASP.NET PostBacks, so, yes, if you Back from and then Forward back onto a PostBack'd page, the browser's going to tell you that it no longer has that page in cache, and you'll have to submit to the server to get it. I'm not aware of any way to tell the browser to do otherwise -- it's actually in part related to a limitation in the way browser's index their cached pages.