private void SetMovieInfo(Model.ProductDao.MovieDetails mov) { lclNameValue.Text = mov.name; lclCategoryValue.Text = mov.category; lclTitleValue.Text = mov.title; lclDirectorValue.Text = mov.director; lclSummaryValue.Text = mov.summary; lclTopicValue.Text = mov.topic; lclDurationValue.Text = mov.duration.ToString(); }
protected void Page_Load(object sender, EventArgs e) { Int32 productId = Convert.ToInt32(Request.Params.Get("productId")); Model.ProductDao.ProductDetails product = SessionManager.ProductService.FindProduct(productId); if (product is Model.ProductDao.MovieDetails) { Model.ProductDao.MovieDetails mov = product as Model.ProductDao.MovieDetails; SetMovieInfo(mov); } }