Exemple #1
0
    private void LoadClient()
    {
        ds = objTeam.LoadClient(lblid.Text, "client");

        ddlClient.DataSource     = ds.Tables["client"];
        ddlClient.DataTextField  = "CL_ClientName";
        ddlClient.DataValueField = "CL_ID";
        ddlClient.DataBind();
        ddlClient.Items.Insert(0, "-Select Client-");
        ddlClient.SelectedIndex = 0;
    }
    private void LoadClients()
    {
        DataSet ds = new DataSet();

        ds = objTeam.LoadClient(Session["team"].ToString(), "clients");
        if (ds.Tables["clients"].Rows.Count > 0)
        {
            gvClients.DataSource = ds.Tables["clients"];
            gvClients.DataBind();
        }
    }