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); } }