예제 #1
0
        public void PopulateAppDropDown(DropDownList ddlGridAppName)
        {
            objclsBALApplication = new clsBALApplication();
            DataSet ds = objclsBALApplication.GetAllApplications();

            ddlGridAppName.DataSource     = ds;
            ddlGridAppName.DataTextField  = "ApplicationName";
            ddlGridAppName.DataValueField = "ApplicationID";
            ddlGridAppName.DataBind();
            ddlGridAppName.Items.Insert(0, new ListItem("-- Select --", "0"));
        }
예제 #2
0
        // gd drp
        public void PopulateAppDropDown(DropDownList ddlGridApp)
        {
            if (ddlGridApp != null)
            {
                objclsBALApplication = new clsBALApplication();
                DataSet ds = new DataSet();
                ds = objclsBALApplication.GetAllApplications();
                ddlGridApp.DataSource     = ds;
                ddlGridApp.DataTextField  = "ApplicationName";
                ddlGridApp.DataValueField = "ApplicationID";
                ddlGridApp.DataBind();

                // ddlGridApp.SelectedItem.Value = AppNm;
                ddlGridApp.Items.Insert(0, new ListItem("-- Select --", "0"));
            }
        }