protected void rating5_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            localMoviesWebService.MoviesWebService moviesWeb = new localMoviesWebService.MoviesWebService();
            RatingService ratingService = new RatingService();
            int           id            = moviesWeb.GetIDbyName(movieName);
            ratingService.InsertUserRateMovie((string)Session["Username"], id, 5, DateTime.Now, review.Text);
            if (moviesWeb.GetMovieByID(id).NumberOfUsers == -1)
            {
                moviesWeb.UpdateMovieRating(5, id, 2);
            }
            else
            {
                moviesWeb.UpdateMovieRating(5, id, 1);
            }

            rating.Visible = false;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            movieName = Request.QueryString["getMovieName"].ToString(); //קבלת קוד המשחק דרך GET
        }
        catch
        {
            Response.Redirect("Home.aspx");
        }
        if (!Page.IsPostBack)
        {
            MoviesService movieService = new MoviesService();
            ActorsService actorService = new ActorsService();
            localMoviesWebService.MoviesWebService moviesWeb = new localMoviesWebService.MoviesWebService();

            movieID = moviesWeb.GetIDbyName(movieName);
            actors  = moviesWeb.ActorsInMovie(movieID);
            PopulatePage(moviesWeb.GetMovieByID(movieID));
        }
        PopulateRating();
    }