public bool Data()
{
String Tno=102.1.01;
string Con = System.Configuration.ConfigurationManager.ConnectionStrings["stgdbConnectionString"].ConnectionString;
SqlConnection con1 = new SqlConnection(Con);
SqlDataAdapter da=new SqlDataAdapter("select TagId from TagTable where TagId="+Tno,con1);
DataSet ds = new DataSet();
da.Fill(ds, "TagTable");
return true;
}
return false;
What can i do here is
When TagId==Tno then return method is true,Not match return false
This is my code how can i cheach this one
I want to chech that given value exist in database or not