Results 1 to 2 of 2

Thread: page refresh and back button issue

  1. #1

    Thread Starter
    Fanatic Member karthikeyan's Avatar
    Join Date
    Oct 2005
    Location
    inside .net
    Posts
    919

    page refresh and back button issue

    hi

    please any give solutions for this two issues:

    1.i am doing insert option.then ater inserting if i press f5 it isgetting refreshed.so again inserting action happening.my need is if i press f5 after some action the last action should not happen again.

    2.consider i have two forms. in first form i am inserting some datas to database and i am going to next page.then if i come to first page using back button and press insert button it should not do the insert operation.

    can any one please give me solution for this.

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

    Re: page refresh and back button issue

    When a user inserts, take them to another page where you tell them that you are inserting the data. You could then redirect them to the original page. This way, when they press refresh, it will show the page with the form fields not filled in.

    Also, disable caching on that page so that navigating to it with the browser back button greets them with a 'page expired' message or a fresh copy of the page.

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