Example #1
0
    private void fillclientsAndPojection()
    {
        DA_Marketing mar = new DA_Marketing();
        DataSet      ds  = new DataSet();

        ds = mar.GetClientsDetails();
        ddlclient.DataSource     = ds.Tables[0];
        ddlclient.DataTextField  = "companyname";
        ddlclient.DataValueField = "Memid";
        ddlclient.DataBind();
        ddlclient.Items.Insert(0, new System.Web.UI.WebControls.ListItem("None", "None"));
    }