title: ASP.net how to use a CompareValidator to compare a textbox input to a column in database?
body: <p>Is there a way to use CompareValidator to validate user input against data in a database table? For example, I have a table STUDENT that contains a column Student_ID. I need to display an error message if a user entered Student_ID value in a textbox that does not exist in the database.</p>