sqlconnection con = new sql connction("connection string"); sqlcommand com = new sqlcommand("select columnname from tablename",con); con.open(); sqldatareader dr = com.excutereader(); dr.read(); if(!dr.IsDBNull(0) && textbox1.text==dr.GetString(0)) { messagebox.show("anything"); } con.close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)