protected void btnSubmitDomain_OnClick(object sender, EventArgs e)
 {
     new DBConnector().updateSettingValueByName("DOMAIN", txtDomain.Text);
     txtDomain.Text   = ActiveDirectoryHelper.getCurrentDomain();
     lblDomain.Text   = "Current Domain: <b>" + txtDomain.Text + "</b>";
     pnlError.Visible = false;
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         txtDomain.Text = ActiveDirectoryHelper.getCurrentDomain();
         lblDomain.Text = "Current Domain: <b>" + txtDomain.Text + "</b>";
     }
 }