Hi..
I want to check EmailID in database ,when i am create new EmailID....
Check EmailID
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
BangaruBabu PuretiRank #2,987 · 483 reputationPosted Mar 25, 2010, 1:15 AM EDT
[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 MRank #1,186 · 1.5K reputationPosted Mar 25, 2010, 1:14 AM EDT
http://forums.asp.net/t/1375014.aspx