A
Alphonse Giambrone
I am relatively new to ASP.NET and just got my bound datagrid utilizing a
typed dataset to work the way I want to add, delete and update data.
The problem I am running into now is when clicking refresh on the browser
after adding a new record. Since the browser sends the same information back
to the server, the same data row is attempted to be inserted again.
Obviously this is not desirable.
I see no simple way to determine if the request is a refresh (so my code can
ignore the insert) or a new request.
This must be a common problem, yet I find very little information on it
anywhere.
Am I missing something? How is this typically handled?
typed dataset to work the way I want to add, delete and update data.
The problem I am running into now is when clicking refresh on the browser
after adding a new record. Since the browser sends the same information back
to the server, the same data row is attempted to be inserted again.
Obviously this is not desirable.
I see no simple way to determine if the request is a refresh (so my code can
ignore the insert) or a new request.
This must be a common problem, yet I find very little information on it
anywhere.
Am I missing something? How is this typically handled?