protected void Clear() { txtempcode.Text = ""; txtempemail.Text = ""; txtempmobile.Text = ""; txtempname.Text = ""; Rdbactive.ClearSelection(); }
protected void Clear() { txtempcode.Text = ""; txtempemail.Text = ""; txtempmobile.Text = ""; txtempname.Text = ""; txtusername.Text = ""; lblmsg.Text = ""; captch.Text = ""; Rdbactive.ClearSelection(); BtnSave.Visible = false; }
public bool validate() { if (txtempcode.Text == "") { cf.ShowAlertMessage("Please Enter Empcode"); txtempcode.Focus(); return(false); } if (txtempcode.Text != "") { bool val; val = obj.CheckInput_new(txtempcode.Text); if (val == true) { Response.Redirect("~/Error.aspx"); } } if (txtempname.Text == "") { cf.ShowAlertMessage("Please Enter Empname"); txtempname.Focus(); return(false); } if (txtempname.Text != "") { bool val; val = obj.CheckInput_new(txtempname.Text); if (val == true) { Response.Redirect("~/Error.aspx"); } } if (txtempmobile.Text == "") { cf.ShowAlertMessage("Please Enter Mobile"); txtempmobile.Focus(); return(false); } if (txtempmobile.Text != "") { bool val; val = obj.CheckInput_new(txtempmobile.Text); if (val == true) { Response.Redirect("~/Error.aspx"); } } if (txtempemail.Text == "") { cf.ShowAlertMessage("Please Enter Email"); txtempemail.Focus(); return(false); } if (txtempemail.Text != "") { bool val; val = obj.CheckInput_new(txtempemail.Text); if (val == true) { Response.Redirect("~/Error.aspx"); } } if (Rdbactive.SelectedIndex == -1) { cf.ShowAlertMessage("Please Select Active"); Rdbactive.Focus(); return(false); } return(true); }