Results 1 to 9 of 9

Thread: expire page in asp.net2.0

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    114

    expire page in asp.net2.0

    Hi all,

    Can anybody pleased tell me how to let a page expire in asp.net2.0 when the user presses the back button?????
    And if he/she press the refresh button he/she will be redirected to the last page that he/she was in????



    Please guys

    thanx in advance

    Regards
    jameee

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    114

    Re: expire page in asp.net2.0

    hi guys,


    please no one knows the solution for that



    regards,

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: expire page in asp.net2.0

    At the top of your page,

    <%@ OutputCache location="none" %>

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    114

    Re: expire page in asp.net2.0

    Thank you mendhak

    What about after refreshing the page??? How to make it redirected to the last page you were in???


    Regards,

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: expire page in asp.net2.0

    A refresh is treated as a re-request of the page. Perhaps you should look for an alternate mechanism to accomplish what you want.

    What is it you want to accomplish here, give background information.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    114

    Re: expire page in asp.net2.0

    Thank you mendhak, , I very much appreciate you.....


    okay regarding what i want,,,
    lets say that we have two pages; page A and Page B. In page A you select some stuff and press the button that redirect you to page B. From page B you press the Back button and it takes you tp the expired page.

    What i want is that while you are on the expired page and you click the refesh button it takes you to page A.


    i hope that you got my point dear....


    Regards

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: expire page in asp.net2.0

    This is where browser behavior comes into play. A refresh should load up the page once again, so you should get the behavior you want. You have described what you wanted. What is happening right now when you do this?

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    114

    Re: expire page in asp.net2.0

    it will take me to page A and let me again select the required field and then proceed to page B

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: expire page in asp.net2.0

    Which is what you wanted.

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