CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Duplicate save .. ASP 3.0

    Hi,,
    I make a page Save.asp that gets some data from a form in another page.. (method=Get)
    Save.asp saves data to a DB then displays a success message..
    the problem :
    when the user press (Refresh or reload) in the browser the data is saved again..
    How to prevent this from happenning ?

  2. #2
    Join Date
    Jan 2001
    Location
    India
    Posts
    228
    may be u can have some session variable set when u save the record. you can check the value of the variable everytime ur save code is executed.

    and when u display the form for entering a new record,u can clear the variable.
    regards
    madhu

  3. #3
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210
    thank you .. good idea..
    another one I found that can work .. to redirect the user to anoher page after save is complete..

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