示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            utility = new Utility();
            utility.loadClient();
            user = getUser();

            //call the web service to retrieve media data
            media = utility.getMedia(itemID);
            comment_list = media.Comments;
            media_url = utility.getMediaUrl(media.MediaId);

            if (user != null)
            {

                isRented = utility.isRented(media.MediaId, user);
            }

            //preload media for viewing if rented
            if (isRented)
            {
                utility.loadFileService();
                Tuple<string, RentItServices.Media, RentItServices.User> tuple =
                    new Tuple<string, RentItServices.Media, RentItServices.User>(user.SharedKey, media, user);

            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            utility = new Utility();
            utility.loadClient();

            //call the web service to retrieve media data
            media = utility.getMedia(itemID);
            media_url = utility.getMediaUrl(media.MediaId);

            music_category_list = utility.getMusicCategories();
            movie_category_list = utility.getMovieCategories();
        }