protected void Page_Load(object sender, EventArgs e) { System.Diagnostics.Debug.WriteLine("WRITE TO THE OUTPUT " + Session["value"]); if (Session["value"] != null) { string movie = Session["value"].ToString(); PopulateListView(MovieContainer.GetSpecificMovieInfo(movie)); } }
public void Opinion_Click(object sender, EventArgs args) { LikesAndDislikes lad = new LikesAndDislikes(Session["value"].ToString()); Button btn = sender as Button; if ((sender as Button).Text == "LIKE") { lad.LikeIncrement(); PopulateListView(MovieContainer.GetSpecificMovieInfo(Session["value"].ToString())); } else { lad.DislikeIncrement(); PopulateListView(MovieContainer.GetSpecificMovieInfo(Session["value"].ToString())); } }