コード例 #1
0
        private void ShowKerkesat()
        {
            ProfesoriMapper pm = new ProfesoriMapper();

            ListGridView.DataSource = pm.ShowKerkesat(Convert.ToInt32(Session["UserID"]));
            ListGridView.DataBind();
        }
コード例 #2
0
ファイル: Profili.aspx.cs プロジェクト: arberk6/CloudEL
        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();
        }