Ejemplo n.º 1
0
    private void ListTypeChinese()
    {
        string Hid = Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"].ToString();

        if (Session[Hid + "ChinesePageIndex"] != null)
        {
            GVType.PageIndex = Int32.Parse(Session[Hid + "ChinesePageIndex"].ToString());
        }
        LearnSite.BLL.Chinese bll = new LearnSite.BLL.Chinese();
        GVType.DataSource = bll.GetListTitle();
        GVType.DataBind();
    }
Ejemplo n.º 2
0
    private void ListTypeArticle()
    {
        string Hid = tcook.Hid.ToString();

        if (Session[Hid + "TyperPageIndex"] != null)
        {
            GVType.PageIndex = Int32.Parse(Session[Hid + "TyperPageIndex"].ToString());
        }
        LearnSite.BLL.Typer bll = new LearnSite.BLL.Typer();
        GVType.DataSource = bll.GetListArticle();
        GVType.DataBind();
    }
Ejemplo n.º 3
0
    private void ListTypeChinese()
    {
        LearnSite.Model.TeaCook tcook = new LearnSite.Model.TeaCook();
        string Hid = tcook.Hid.ToString();

        if (Session[Hid + "ChinesePageIndex"] != null)
        {
            GVType.PageIndex = Int32.Parse(Session[Hid + "ChinesePageIndex"].ToString());
        }
        LearnSite.BLL.Chinese bll = new LearnSite.BLL.Chinese();
        GVType.DataSource = bll.GetListTitle();
        GVType.DataBind();
    }
Ejemplo n.º 4
0
 protected void BindGrid()
 {
     check();
     dt           = new DataTable();
     objBE.Dept   = Session["Department"].ToString();
     objBE.Action = "R";
     dt           = ObjDL.CategoryIUDR(objBE, con);
     if (dt.Rows.Count > 0)
     {
         GVType.DataSource = dt;
         GVType.DataBind();
     }
     else
     {
         GVType.DataSource = null;
         GVType.DataBind();
     }
 }