Results 1 to 2 of 2

Thread: on page refresh event fires again?

  1. #1

    Thread Starter
    Member chocoloco's Avatar
    Join Date
    Mar 2006
    Posts
    42

    on page refresh event fires again?

    Hi Guys,

    I have a ASP:Button which when clicked saves some data in the database. This works fine! But after the save if user refreshes the browser by hitting F5 or clicking the refresh button on the browser the event fires again and saves the data in the DB. How do I stop 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: on page refresh event fires again?

    Clear the form of any values. Alternatively, when the user fills in values in the form, take him to another page which does the saving, then go back to the original form, clear of values. Or, move the user to another page after saving their data. A confirmation page, so to speak.

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