Ejemplo n.º 1
0
        private void BindItemDropdown()
        {
            TyreIssueDAL objTruck = new TyreIssueDAL();
            var          itemname = objTruck.BindItemName();

            ddlItemName.DataSource     = itemname;
            ddlItemName.DataTextField  = "Item_name";
            ddlItemName.DataValueField = "Item_idno";
            ddlItemName.DataBind();
            ddlItemName.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "0"));
        }
Ejemplo n.º 2
0
        private void BindDropdown()
        {
            BindDropdownDAL obj        = new BindDropdownDAL();
            TyreIssueDAL    objTruck   = new TyreIssueDAL();
            var             TruckNolst = obj.BindTruckNo();
            var             ToCity     = obj.BindLocFrom();
            var             itemname   = objTruck.BindItemName();

            obj = null;
            ddlTruckNo.DataSource     = objTruck.BindTruckNo();
            ddlTruckNo.DataTextField  = "Lorry_No";
            ddlTruckNo.DataValueField = "Lorry_Idno";
            ddlTruckNo.DataBind();
            ddlTruckNo.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "0"));
        }