CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Location
    Hyderabad
    Posts
    76

    output cache not working properly

    Hi all,
    Sorry, I have put some html code for the user control but it is not displayed properly, so i am submitting again.
    I have a typical problem regarding fragment caching.
    I have a user control that displays currently logged in user's data. I have put that user control on every page of asp.net application. I want the control to be cache so that the page takes less time to process.
    There is one button "Log out" in that user control, onclicking of that button user is redirected to login page.
    Now what happens when i click the logout button of the user control from any page,
    the whole page is cached and is displayed again instead of redirecting to the login page.

    The code for the user control is in the text file attached with this message.

    can anybody help me to solve the problem. I can't understand why this is happening.?

    Thanks in advance,
    Ashish
    Attached Files Attached Files
    Ashish Sheth

  2. #2
    Join Date
    Jan 2000
    Posts
    264
    What is your codebehind for your Logout button?

    It should say something like Response.Redirect("logout.aspx")

    What you listed only shows the html code.

    Also, if it does say that, note that the output cache is going to keep the same page in cache for 120 secs(or is that minutes...i cant remember). What this means is that since the page is cache, it will not respond. Try taking out the Cache and see what happens.

    HTH,
    Greg
    Last edited by gknierim; April 7th, 2003 at 08:43 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured