Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh Problem

Status
Not open for further replies.

ratzp

Programmer
Dec 30, 2005
49
IN
I have create a Event Handler of Dynamic Save Button. it is working properly. But after Save if I press F5 or Refress Button. Thr Event Handler again executed and Save Duplicate Data.
Provide Solution for the same.
Thank You.
 
The functionality is performing as it should do. If you want to avoid this, redirect the user after you have performed the save (you can redirect back to the same page if necessary).


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244.
 
Make sure you use the Redirect method and not the Server.Transfer as I forgot about the fact that although the page looks like another page, if you hit refresh, it issues the previous postback.[blush]

James :)

James Culshaw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top