protected void btnAdd_Click(Object Sender, EventArgs e) { int intParent = Int32.Parse(Request.Form[hdnParent.UniqueID]); if (txtStorageThreholdMin.Text == "") { txtStorageThreholdMin.Text = "0"; } if (txtStorageThreholdMax.Text == "") { txtStorageThreholdMax.Text = "0"; } if (Request.Form[hdnId.UniqueID] == "0") { oModelsProperties.AddOther(intParent, (chkAvailable.Checked ? 1 : 0), Int32.Parse(txtReplicate.Text), double.Parse(txtAmp.Text), Int32.Parse(txtNetworkPorts.Text), Int32.Parse(txtStoragePorts.Text), txtName.Text, Int32.Parse(txtRam.Text), Int32.Parse(txtCount.Text), double.Parse(txtSpeed.Text), Int32.Parse(ddlChipset.SelectedItem.Value), double.Parse(txtStorageThreholdMin.Text), double.Parse(txtStorageThreholdMax.Text), Int32.Parse(ddlAssetCategory.SelectedItem.Value), (chk_high_availability.Checked ? 1 : 0), (chk_high_performance.Checked ? 1 : 0), (chk_low_performance.Checked ? 1 : 0), (chk_enforce_1_1_recovery.Checked ? 1 : 0), (chk_no_many_1_recovery.Checked ? 1 : 0), (chk_vmware_virtual.Checked ? 1 : 0), (chk_ibm_virtual.Checked ? 1 : 0), (chk_sun_virtual.Checked ? 1 : 0), (chk_storage_db_boot_local.Checked ? 1 : 0), (chk_storage_db_boot_san_windows.Checked ? 1 : 0), (chk_storage_db_boot_san_unix.Checked ? 1 : 0), (chk_storage_de_fdrive_can_local.Checked ? 1 : 0), (chk_storage_de_fdrive_must_san.Checked ? 1 : 0), (chk_storage_de_fdrive_only.Checked ? 1 : 0), (chkManualBuild.Checked ? 1 : 0), (chk_type_blade.Checked ? 1 : 0), (chk_type_physical.Checked ? 1 : 0), (chk_type_vmware.Checked ? 1 : 0), (chk_type_enclosure.Checked ? 1 : 0), (chk_config_service_pack.Checked ? 1 : 0), (chk_config_vmware_template.Checked ? 1 : 0), (chk_config_maintenance_level.Checked ? 1 : 0), (chkVio.Checked ? 1 : 0), Int32.Parse(ddlStorageFabric.SelectedItem.Value), Int32.Parse(ddlStorageType.SelectedItem.Value), (chk_inventory.Checked ? 1 : 0), (chkDell.Checked ? 1 : 0), Int32.Parse(ddlDell.SelectedItem.Value), (chkConfigureSwitches.Checked ? 1 : 0), (chkEnterName.Checked ? 1 : 0), (chkEnterIP.Checked ? 1 : 0), (chkAssociateProject.Checked ? 1 : 0), (chkFullHeight.Checked ? 1 : 0), (chkEnabled.Checked ? 1 : 0)); } else { oModelsProperties.UpdateOther(Int32.Parse(Request.Form[hdnId.UniqueID]), intParent, (chkAvailable.Checked ? 1 : 0), Int32.Parse(txtReplicate.Text), double.Parse(txtAmp.Text), Int32.Parse(txtNetworkPorts.Text), Int32.Parse(txtStoragePorts.Text), txtName.Text, Int32.Parse(txtRam.Text), Int32.Parse(txtCount.Text), double.Parse(txtSpeed.Text), Int32.Parse(ddlChipset.SelectedItem.Value), double.Parse(txtStorageThreholdMin.Text), double.Parse(txtStorageThreholdMax.Text), Int32.Parse(ddlAssetCategory.SelectedItem.Value), (chk_high_availability.Checked ? 1 : 0), (chk_high_performance.Checked ? 1 : 0), (chk_low_performance.Checked ? 1 : 0), (chk_enforce_1_1_recovery.Checked ? 1 : 0), (chk_no_many_1_recovery.Checked ? 1 : 0), (chk_vmware_virtual.Checked ? 1 : 0), (chk_ibm_virtual.Checked ? 1 : 0), (chk_sun_virtual.Checked ? 1 : 0), (chk_storage_db_boot_local.Checked ? 1 : 0), (chk_storage_db_boot_san_windows.Checked ? 1 : 0), (chk_storage_db_boot_san_unix.Checked ? 1 : 0), (chk_storage_de_fdrive_can_local.Checked ? 1 : 0), (chk_storage_de_fdrive_must_san.Checked ? 1 : 0), (chk_storage_de_fdrive_only.Checked ? 1 : 0), (chkManualBuild.Checked ? 1 : 0), (chk_type_blade.Checked ? 1 : 0), (chk_type_physical.Checked ? 1 : 0), (chk_type_vmware.Checked ? 1 : 0), (chk_type_enclosure.Checked ? 1 : 0), (chk_config_service_pack.Checked ? 1 : 0), (chk_config_vmware_template.Checked ? 1 : 0), (chk_config_maintenance_level.Checked ? 1 : 0), (chkVio.Checked ? 1 : 0), Int32.Parse(ddlStorageFabric.SelectedItem.Value), Int32.Parse(ddlStorageType.SelectedItem.Value), (chk_inventory.Checked ? 1 : 0), (chkDell.Checked ? 1 : 0), Int32.Parse(ddlDell.SelectedItem.Value), (chkConfigureSwitches.Checked ? 1 : 0), (chkEnterName.Checked ? 1 : 0), (chkEnterIP.Checked ? 1 : 0), (chkAssociateProject.Checked ? 1 : 0), (chkFullHeight.Checked ? 1 : 0), (chkEnabled.Checked ? 1 : 0)); } Response.Redirect(Request.Path); }