private void bindsender() { PurchaseBillDAL objBill = new PurchaseBillDAL(); DataTable dt = objBill.BindSenderForPurchaseBill(ApplicationFunction.ConnectionString()); ddlPartyName.DataSource = dt; ddlPartyName.DataTextField = "Acnt Name"; ddlPartyName.DataValueField = "Acnt Idno"; ddlPartyName.DataBind(); ddlPartyName.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "0")); }