public void PopulateServerDropDown(DropDownList ddlGridSereverName)
        {
            objclsBALApplication = new clsBALApplication();
            DataSet ds = objclsBALApplication.GetDBServerLists();

            ddlGridSereverName.DataSource     = ds;
            ddlGridSereverName.DataTextField  = "ServerName";
            ddlGridSereverName.DataValueField = "ServerID";
            ddlGridSereverName.DataBind();
            ddlGridSereverName.Items.Insert(0, new ListItem("-- Select --", "0"));
        }
Esempio n. 2
0
        public void PopulateGrid()
        {
            objclsBALApplication = new clsBALApplication();
            DataSet ds = objclsBALApplication.GetDBServerLists();

            gvServer.DataSource = ds;
            gvServer.DataBind();
            Session[clsEALSession.Servers] = ds;
            if (ViewState["SortExpression"] != null && ViewState["sortDirection"] != null)
            {
                SortGridView(ViewState["SortExpression"].ToString(), ViewState["sortDirection"].ToString());
            }
        }