| Author: Antony s Nasarath 11 Oct 2008 | Member Level: Silver | Rating: Points: 4 |
Hi,
You have to pass the login id as a string ie text1.Text should be enclosed with single quote
Modify the line as follows SqlCommand cmd = new SqlCommand("select Cust_Id from ARS_Cust_Reg where Login_Id = '" + txt1.Text +"'", con);
Regards, Antony
|