public bool valid() { ////Shakeeb Validationss v = new Validationss(); if (v.emialvalidation(txtUserEmail.Text) == false) { ClientScript.RegisterStartupScript(this.GetType(), "Pop", "openalert('Please Enter Proper Email');", true); return(false); } return(true); }
public bool validationss() { ////Shakeeb Validationss v = new Validationss(); string[] array = new string[] { txtGivenAmt.Text, txtBalanceAmt.Text }; if (v.emtystringvalidtion(array) == false) { ClientScript.RegisterStartupScript(this.GetType(), "Pop", "openalert('All fields are Required');", true); return(false); } return(true); }
public bool validationss() { ////Shakeeb Validationss v = new Validationss(); if (v.mobilevations(txtmobile.Value) == false) { ClientScript.RegisterStartupScript(this.GetType(), "Pop", "openalert('Please Enter Proper Mobile Number','False');", true); return(false); } //if (v.emialvalidation(email.Value) == false) //{ // ClientScript.RegisterStartupScript(this.GetType(), "Pop", "openalert('Please Enter Proper Email','False');", true); // return false; //} string[] array = new string[] { txtfirstname.Value, txtlastname.Value, txtcompanyname.Value, txtzip.Value, txtmobile.Value }; if (v.emtystringvalidtion(array) == false) { ClientScript.RegisterStartupScript(this.GetType(), "Pop", "openalert('All fields are Required','False');", true); return(false); } string emailID = CheckDouble(email.Value); if (emailID == "true") { ClientScript.RegisterStartupScript(this.GetType(), "Pop", "openalert('Email ID is already Exist','False');", true); return(false); } string mobile = CheckMobileDouble(txtmobile.Value); if (mobile == "true") { ClientScript.RegisterStartupScript(this.GetType(), "Pop", "openalert('Mobile Number is already Exist','False');", true); return(false); } return(true); }