//Bind Device #region [Bind Device] private void BindDevices() { try { objEWA.OrgId = Convert.ToString(orgId); DataSet dsDesignation = objBL.BindAttDevices_BL(objEWA); ddlDeviceName.DataSource = dsDesignation; ddlDeviceName.DataTextField = "DeviceName"; ddlDeviceName.DataValueField = "DeviceSettingId"; ddlDeviceName.DataBind(); ddlDeviceName.Items.Insert(0, "Select"); } catch (Exception exp) { GeneralErr(exp.Message.ToString()); } }
//Bind Devices #region [Bind Devices] private void BindDevices() { try { EWA_DownloadAttDeviceData objEWA = new EWA_DownloadAttDeviceData(); BL_DownloadAttDeviceData objBL = new BL_DownloadAttDeviceData(); objEWA.OrgId = "1"; DataSet dsDesignation = objBL.BindAttDevices_BL(objEWA); ddlDeviceName.DataSource = dsDesignation; ddlDeviceName.DataTextField = "DeviceName"; ddlDeviceName.DataValueField = "DeviceSettingId"; ddlDeviceName.DataBind(); ddlDeviceName.Items.Insert(0, "Select"); } catch (Exception exp) { GeneralErr(exp.Message.ToString()); } }