protected void SearchM_Click(object sender, EventArgs e) { VodioContainer ve = new VodioContainer(); List <Genre> gen = ve.Genres.Where(a => a.Name.Contains(SearchBox.Text)).ToList(); AllGen.DataSource = gen; AllGen.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { dt = Return_Dt(); if (!Page.IsPostBack) { VodioContainer ve = new VodioContainer(); List <Genre> gen = ve.Genres.Where(a => a.Id != null).ToList(); AllGen.DataSource = gen; AllGen.DataBind(); Load_MovieGenre(); } }