Answers for "how to check if string from textbox exists in db"

C#
0

how to check if string from textbox exists in db

// Check for duplicates
bool isDuplicate = ExistingList.Any(r => r.Name == textBox.Name);

 if (isDuplicate)
            {
                MessageBox.Show("Name already Exists");
                return;
            }
Posted by: Guest on March-01-2022

Code answers related to "how to check if string from textbox exists in db"

C# Answers by Framework

Browse Popular Code Answers by Language