Beispiel #1
0
        protected void ImgBtnTruuckRefresh_Click(object sender, ImageClickEventArgs e)
        {
            TyreIssueDAL obj        = new TyreIssueDAL();
            var          TruckNolst = obj.BindTruckNo();

            ddlTruckNo.DataSource     = TruckNolst;
            ddlTruckNo.DataTextField  = "Lorry_No";
            ddlTruckNo.DataValueField = "lorry_idno";
            ddlTruckNo.DataBind();
            ddlTruckNo.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "0"));
        }
Beispiel #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"));
        }