S
SOW Olivier
Hi,
I'm begin in ASP.NET.
I use a gridView and DetailView in a same page,
I add a button which set DetailView in InsertMode.
When i click insert button in the DetailView, data are stored fine in my DataBase.
But if I refresh the page juste after the insert, data are inserted again in the Database.
When I worked with ASP3 in this case, i just do a redirection after inserting data with:
Response.Redirect(Request.Path+"?insert=1")
But if i do that with ASP.NET, when i select a next page in the GridView, insert=1 stay in the QueryString.
I'm sure i don't use the correct way to forbid double insert, can someone help ?
many thanx
I'm begin in ASP.NET.
I use a gridView and DetailView in a same page,
I add a button which set DetailView in InsertMode.
When i click insert button in the DetailView, data are stored fine in my DataBase.
But if I refresh the page juste after the insert, data are inserted again in the Database.
When I worked with ASP3 in this case, i just do a redirection after inserting data with:
Response.Redirect(Request.Path+"?insert=1")
But if i do that with ASP.NET, when i select a next page in the GridView, insert=1 stay in the QueryString.
I'm sure i don't use the correct way to forbid double insert, can someone help ?
many thanx