Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
            }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #string #textbox #exists #db
ADD COMMENT
Topic
Name
4+4 =