Click here to Skip to main content
15,301,841 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
question deleted
question deleted
question deleted
question deleted
question deleted
question deleted
Posted
Updated 12-Mar-13 3:08am
v3
Comments
vishal.shimpi 9-Mar-13 1:50am
   
debug your javascript... one more problem is that, your select query return set of rows then how you compare "dbdata == Email_Id"?
if your javascript open database connection then write code like
var db = database.open("kc-pc\sqlexpress.CWCLondon");
var Email_Id = document.getElementById("MainContent_TabContainer1_TabPanel2_txt_email");
var dbdata = db.Query("SELECT email_address FROM call_details where email_address=" + Email_Id );

if (dbdata >= 1)
{
alert("email id exsist");
}

C#
function Unique_Name()
{

    var db = database.open("kc-pc\sqlexpress.CWCLondon");
    var dbdata = db.Query("SELECT  email_address FROM call_details WHERE email_address='+ txt_email.Text +';");
    var Email_Id = document.getElementById("MainContent_TabContainer1_TabPanel2_txt_email");
    if (dbdata == Email_Id)
    {
        alert("email id exsist");
    }



}
   
v2
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900