Exemplo n.º 1
0
    private void MontaChkBoxList()
    {
        ClienteDAL ObjClienteDAL = new ClienteDAL();

        ChkBoxList.DataSource     = ObjClienteDAL.DropDownList(0, Convert.ToInt32(Session["idPerfil"]));
        ChkBoxList.DataTextField  = "RazaoSocial";
        ChkBoxList.DataValueField = "ID";
        ChkBoxList.DataBind();
    }
Exemplo n.º 2
0
        public void BindCountry()
        {
            ListItem item = new ListItem();

            ChkBoxList.DataSource    = holidayBusinessAccess.HolidayCountryBindddl();
            ChkBoxList.DataTextField = "Country_Name";
            //ChkBoxList.DataValueField = "Country_Id";
            ChkBoxList.DataBind();
        }
Exemplo n.º 3
0
        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();
            }
        }
Exemplo n.º 4
0
        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();
            }
        }