Hi..
I want to check EmailID in database ,when i am create new EmailID....
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
BangaruBabu PuretiPosted Mar 25, 2010, 5:15 AM
[code]
SqlConnection cn=new SqlConnection("Connection String");
SqlDataAdapter da=new SqlDataAdater("select emailID from tableName where emailid='"+txtemailID.Text+"',cn)
DataSet ds=new Dataset();
da.Fill(ds);
if(ds.Tables[0].Rows.Count > 0)
{
Label1.Text="EmailID Exists";
}
else
{
Label1.Text="EmailID Not Exists";
}
[/code]
I Think It will help you .Mark As Answered
Lalit MPosted Mar 25, 2010, 5:14 AM
http://forums.asp.net/t/1375014.aspx