protected void btnDomainUpdate_Click(Object Sender, EventArgs e) { int intResiliency = 0; if (ddlDomainResiliency.SelectedItem != null) { Int32.TryParse(ddlDomainResiliency.SelectedItem.Value, out intResiliency); } oTSM.UpdateDomain(intDomain, intServer, txtDomainName.Text, (chkDomainEngineering.Checked ? 1 : 0), (chkDomainTest.Checked ? 1 : 0), (chkDomainQA.Checked ? 1 : 0), (chkDomainProduction.Checked ? 1 : 0), (chkDomainWindows.Checked ? 1 : 0), (chkDomainUnix.Checked ? 1 : 0), intResiliency, (chkDomainEnabled.Checked ? 1 : 0)); Redirect("server=" + intServer.ToString() + "&domain=" + intDomain.ToString() + "&saved=true"); }