private void ShowKerkesat() { ProfesoriMapper pm = new ProfesoriMapper(); ListGridView.DataSource = pm.ShowKerkesat(Convert.ToInt32(Session["UserID"])); ListGridView.DataBind(); }
private void mbushTeDhenat() { ProfesoriMapper pm = new ProfesoriMapper(); List <String> lendet = pm.Profili(Convert.ToInt32(Session["UserID"])); foreach (String s in lendet) { HtmlGenericControl li = new HtmlGenericControl("li"); li.InnerText = s; li.Attributes.Add("class", "list-group-item"); list.Controls.Add(li); } }
protected void ListGridView_SelectedIndexChanged(object sender, EventArgs e) { ListGridView.DataSource = null; ListGridView.DataBind(); String selectedValue = FilterKerkimiDropDown.SelectedValue; if (selectedValue.Equals("Te gjitha")) { ShowKerkesat(); return; } ProfesoriMapper pm = new ProfesoriMapper(); ListGridView.DataSource = pm.ShowKerkesatPerKurs(Convert.ToInt32(Session["UserID"]), selectedValue); ListGridView.DataBind(); }