Refresh button resubmitting data - How to prevent this?

A

Andy

My application is written in .NET (C#) with the inline Edit mode from
DataGrid. When a SAVE button is pressed it will perform a action on the
database either to add, edit or delete data that a user has entered.
When the refresh button is pressed at the top of the page the same
exact data is re-submitted again resulting duplicate transaction in the
database. Is there anyway of stopping this happening? From client-side
script, how can we detect that the "Refresh" button is click? thanks a
lot.
 
M

Mike Brind

Andy said:
My application is written in .NET (C#) with the inline Edit mode from
DataGrid. When a SAVE button is pressed it will perform a action on the
database either to add, edit or delete data that a user has entered.
When the refresh button is pressed at the top of the page the same
exact data is re-submitted again resulting duplicate transaction in the
database. Is there anyway of stopping this happening? From client-side
script, how can we detect that the "Refresh" button is click? thanks a
lot.

This group covers classic asp. ASP.NET is a totally different technology and
has its own group: microsoft.public.dotnet.framework.aspnet.

Mind you, a google search of 'datagrid prevent duplicate insert' would be a
quicker route to a solution.

Here - I've done it for you:
http://www.google.co.uk/search?hl=en&q=datagrid+prevent+duplicate+insert&btnG=Google+Search&meta=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top