SELECT personID, name, phoneNumber, age
FROM dbo.person
WHERE name = ....
I have created a database in visual studio and presented it in a gridview. I am currently creating a method where the user can search for a person’s name and have the matching rows displayed in gridview.
Visual Studio throws an error when I try to enter the field userinputTextBox.Text in the (….) space above.
Has anyone done this before and know a way around it?
You need to include
parameterNamewith SELECT statement.