By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,760 Members | 969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,760 IT Pros & Developers. It's quick & easy.

Refresh button resubmitting data - How to prevent this?

P: n/a
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.

Dec 1 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Andy" <ha***@intel.comwrote in message
news:11*********************@80g2000cwy.googlegrou ps.com...
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...e+Search&meta=

--
Mike Brind
Dec 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.