예제 #1
0
        public async Task LoadAttractionsData(string url)
        {
            Itinerary objExp = new Itinerary();

            TripAdvisorScraper tas = new TripAdvisorScraper(url);
            DataSet            ds  = await tas.GetTopAttractions();

            gvExplore.DataSource = ds;
            gvExplore.DataBind();
        }
예제 #2
0
        public async Task LoadReviewsData(string attraction, string reviewsUrl)
        {
            Itinerary objExp = new Itinerary();

            TripAdvisorScraper tas = new TripAdvisorScraper();
            DataSet            ds  = await tas.GetTopAttractionsReviews(attraction, reviewsUrl);

            gvReviews.DataSource = ds;
            gvReviews.DataBind();

            DataSet dsPhoto = await tas.GetTopAttractionsReviewsPhotos();

            rpPhotos.DataSource = dsPhoto;
            rpPhotos.DataBind();
        }