Ejemplo n.º 1
0
 protected void btnpersonsave_Click(object sender, EventArgs e)
 {
     if (txtpersonssn.Text != "")
     {
         // List<tbl_PersonDetail> dt = Person_Details.Licensing_Details.GetSSN(txtpersonssn.Text);
         string cnt = Utilities_Licensing.checkSSN(txtpersonssn.Text);
         if (cnt != "0")
         {
             string js = " altbox('This SSN already exists in the system.');";
             ScriptManager.RegisterStartupScript(Page, GetType(), "scr", js, true);
         }
         else
         {
             PersonInsertion();
         }
     }
     else
     {
         PersonInsertion();
     }
 }