Murray Brown
asked on
ASP.net/SQL Prevent Duplicates
Hi
In my ASP.net web app I am writing code that loops through a GridView and inserts data into a SQL table.
I want to prevent duplicates based o two columns [Username] and [Item ID].
What I the best way to do this?
In my ASP.net web app I am writing code that loops through a GridView and inserts data into a SQL table.
I want to prevent duplicates based o two columns [Username] and [Item ID].
What I the best way to do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
If you have data from your GridView, you can use this code to get data without duplicates.
Open in new window