Пример #1
0
        private void ShowKerkesat()
        {
            ProfesoriMapper pm = new ProfesoriMapper();

            ListGridView.DataSource = pm.ShowKerkesat(Convert.ToInt32(Session["UserID"]));
            ListGridView.DataBind();
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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();
        }