private void MontaChkBoxList() { ClienteDAL ObjClienteDAL = new ClienteDAL(); ChkBoxList.DataSource = ObjClienteDAL.DropDownList(0, Convert.ToInt32(Session["idPerfil"])); ChkBoxList.DataTextField = "RazaoSocial"; ChkBoxList.DataValueField = "ID"; ChkBoxList.DataBind(); }
public void BindCountry() { ListItem item = new ListItem(); ChkBoxList.DataSource = holidayBusinessAccess.HolidayCountryBindddl(); ChkBoxList.DataTextField = "Country_Name"; //ChkBoxList.DataValueField = "Country_Id"; ChkBoxList.DataBind(); }
private void loadData() { DataSet ds = DatabaseUtilities.DsGet_CTByTableName(Constants.TBL_CT_ASSET_DISPOSITION, true); if (ds.Tables[0].Rows.Count > 0) { ChkBoxList.DataSource = ds; ChkBoxList.DataTextField = Constants.COLUMN_CT_ASSET_DISPOSITION_Name; ChkBoxList.DataValueField = Constants.COLUMN_CT_ASSET_DISPOSITION_ID; ChkBoxList.DataBind(); } }
public void LoadMultiSelectDDL(DataSet ds, string dataTextField, string dataValueField) { int iRecordCount = ds.Tables[0].Rows.Count; if (iRecordCount > 0) { ChkBoxList.DataSource = ds; ChkBoxList.DataTextField = dataTextField; ChkBoxList.DataValueField = dataValueField; ChkBoxList.DataBind(); } }