Example #1
0
        //private void BindClaimParty()
        //{
        //    BindDropdownDAL obj = new BindDropdownDAL();
        //    DataTable dtParty = new DataTable();
        //    dtParty = obj.BindPartyforClaim(ApplicationFunction.ConnectionString());
        //    obj = null;
        //    ddlDivPrtyName.DataSource = dtParty;
        //    ddlDivPrtyName.DataTextField = "Acnt_Name";
        //    ddlDivPrtyName.DataValueField = "Acnt_Idno";
        //    ddlDivPrtyName.DataBind();
        //    ddlDivPrtyName.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Choose Party.......", "0"));

        //    ddlParty.DataSource = dtParty;
        //    ddlParty.DataTextField = "Acnt_Name";
        //    ddlParty.DataValueField = "Acnt_Idno";
        //    ddlParty.DataBind();
        //    ddlParty.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Choose Party.......", "0"));

        //}

        private void BindCompany()
        {
            BindDropdownDAL obj         = new BindDropdownDAL();
            var             CompanyName = obj.SelectCompanyName();

            obj = null;
            if (CompanyName != null)
            {
                ddlCompanyName.DataSource     = CompanyName;
                ddlCompanyName.DataTextField  = "Acnt_Name";
                ddlCompanyName.DataValueField = "Acnt_Idno";
                ddlCompanyName.DataBind();
            }
            ddlCompanyName.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Choose Company.......", "0"));
        }