Esempio n. 1
0
        private void LoadProducts(string FoodName)
        {
            BLL.Food prodObj = new BLL.Food();
            FoodName = (string)Session["FoodName"];
            prodObj  = prodObj.GetProductById(FoodName);

            TBFoodName.Text = prodObj.FoodName;
            TBFoodDesc.Text = prodObj.FoodInfo;

            TBPlaceName.Text  = prodObj.PlaceName;
            TBPlaceInfo.Text  = prodObj.PlaceInfo;
            TBAddress.Text    = prodObj.PlaceAdd;
            TBPlaceName2.Text = prodObj.PlaceName2;
            TBPlaceInfo2.Text = prodObj.PlaceInfo2;
            TBAddress2.Text   = prodObj.PlaceAdd2;
            TBPlaceName3.Text = prodObj.PlaceName3;
            TBPlaceInfo3.Text = prodObj.PlaceInfo3;
            TBAddress3.Text   = prodObj.PlaceAdd3;
        }
Esempio n. 2
0
        private void LoadProducts(string FoodName)
        {
            BLL.Food prodObj = new BLL.Food();
            FoodName = (string)Session["FoodName"];
            prodObj  = prodObj.GetProductById(FoodName);

            LabelFoodName.Text = prodObj.FoodName;
            LabelFoodDesc.Text = prodObj.FoodInfo;
            ImageFood.ImageUrl = "~/Images/" + prodObj.FoodPic;

            LabelPlace.Text     = prodObj.PlaceName;
            LabelPlaceDesc.Text = prodObj.PlaceInfo;
            LabelAdd.Text       = prodObj.PlaceAdd;

            LabelPlace2.Text     = prodObj.PlaceName2;
            LabelPlaceDesc2.Text = prodObj.PlaceInfo2;
            LabelAdd2.Text       = prodObj.PlaceAdd2;

            LabelPlace3.Text     = prodObj.PlaceName3;
            LabelPlaceDesc3.Text = prodObj.PlaceInfo3;
            LabelAdd3.Text       = prodObj.PlaceAdd3;
        }