Groups | Blog | Home
all groups > asp.net announcements > october 2004 >

asp.net announcements : Refresh problem



bhavik
10/16/2004 4:13:02 AM
hi
i have one aspx page on which i have one button

in code behind i wrote a code for inserting a record.
if i clicik on button it inserts a record
ok ite fine
but the problem is that if i refresh the page
it will go again into button_click event and add the same record again

why so. ?

plz help me
Sudhakar Sadasivuni[mvp]
10/17/2004 11:53:03 PM
You can have a medium redirector page which can redirect to this page instead
of doing a postback again..or use a cookie which can track the insertion.

Sudhakar Sadasivuni
http://one.mvpblog.com


[quoted text, click to view]
AddThis Social Bookmark Button