Hello my fellow DaniWebbers, I have a question for you.


I am troubleshooting an ASP.NET (some one else wrote) page that has an insert form.

The user can insert, using linq, into the database.

I want to check the database for the values before inserting the values. (Safeguarding from duplicates)


Could anyone please guide me through a way to do this? I have tried reading Microsoft's Documentation on LINQ and I am still lost. (Big shocker)

P.S. I know this is an ASP.NETish question. The problem lies in the code behind, therefore; I posted in VB.NET forum.

Thank you,

Recommended Answers

All 2 Replies

Use a LINQ->Any having the appropiate comparasion function. For an example see here

commented: Thank you for your help! +5

Awesome, I have frankensteined a function together that works!

Thank you, lola!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.