protected void btnSearch_Click(object sender, EventArgs e) { Clear(); string searchValue = txtSearch.Text; if (!searchValue.Equals("")) { List <MovieDTO> result = MovieDao.AdminSearchMovie(searchValue); Session.Add("AdminMovieSearch", result); if (result.Count > 0) { lblMessage.Text = ""; gvStaffList.Visible = true; gvStaffList.DataSource = null; gvStaffList.DataSource = result; gvStaffList.DataBind(); } else { gvStaffList.Visible = false; gvStaffList.DataSource = null; SetMessageTextAndColor("No record found", Color.Red); } } }