Esempio n. 1
0
 protected void getAdmins_SelectedIndexChanged(object sender, EventArgs e)
 {
     ad = z.getAdminDetails(getAdmins.SelectedValue);
     edit_xname.Text      = ad.xname;
     edit_xpass.Text      = ody.DecryptString(ad.xpass, file_len, file_string);
     edit_xemail.Text     = ody.DecryptString(ad.xemail, file_len, file_string);
     edit_telephone1.Text = ad.xtelephone1;
     edit_telephone2.Text = ad.xtelephone2;
     Designation.Text     = ad.Designation;
     FilePath.Text        = ad.FilePath;
     if (String.IsNullOrEmpty(ad.FilePath))
     {
         FilePath.Visible = false;
     }
     else
     {
         FilePath.Visible = true;
     }
     edit_xrole.SelectedIndex  = Convert.ToInt16(z.getAdmiPriv(ad.xroleID)) - 1;
     edit_status.SelectedIndex = Convert.ToInt16(ad.xvisible);
     enable_EditTbl            = "1";
 }