Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //load webservice client
            utility = new Utility();
            utility.loadClient();

            //call the web service to load data
            country_list = utility.getCountries();
            music_category_list = utility.getMusicCategories();
            movie_category_list = utility.getMovieCategories();

            currentUser = getUser();
            if (currentUser != null)
            {
                //if user is not null, load his history
                bookmark_list = utility.getUserBookmarks(currentUser);
                rental_list = utility.getRentalHistory(currentUser);
            }
        }