Ejemplo n.º 1
0
 protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (e.CommandName == "delete")
     {
         zs.BLL.Tbl_News bll = new zs.BLL.Tbl_News();
         bll.Delete(int.Parse(e.CommandArgument.ToString()));
         BindData();
     }
 }
Ejemplo n.º 2
0
    private void GetContent()
    {
        zs.BLL.Tbl_News bll = new zs.BLL.Tbl_News();
        string          id  = ApplicationMethod.decript(Request.QueryString["id"]);

        zs.Model.Tbl_News model = bll.GetModelByCache(int.Parse(id));
        this.lb_title.Text = model.title;
        this.lb_Cont.Text  = model.conts;
        tags       = "浙江树人大学,招生网,树大招生," + model.title;
        desc       = ApplicationMethod.NoHtmlCode(model.conts, 80);
        Page.Title = model.title + " - 浙江树人大学招生网";
    }
Ejemplo n.º 3
0
    private void GetAllNews()
    {
        zs.BLL.Tbl_News  bll  = new zs.BLL.Tbl_News();
        zs.BLL.Tbl_Guide bllg = new zs.BLL.Tbl_Guide();
        UsersBind1(bll.GetModelList("1=1 order by id desc"), 15);
        string title = "招考快讯";

        this.lb_title.Text = title;
        tags       = "浙江树人大学,招生网,树大招生," + title;
        desc       = "由浙江省政协主办的浙江树人大学(学院)坐落于杭州市城区,是改革开放以来我国最早成立并经国家教育部首批批准承认学历的全日制民办本科高校之一。";
        Page.Title = title + " - 浙江树人大学招生网";
    }
Ejemplo n.º 4
0
    private void GetNewsList()
    {
        zs.BLL.Tbl_News  bll  = new zs.BLL.Tbl_News();
        zs.BLL.Tbl_Guide bllg = new zs.BLL.Tbl_Guide();
        id = ApplicationMethod.decript(Request.QueryString["id"]);
        UsersBind(bll.GetModelList("leiid=" + id + " order by id desc"), 15);
        string title = bllg.GetModelByCache(int.Parse(id)).name;

        this.lb_title.Text = title;
        tags       = "浙江树人大学,招生网,树大招生," + title;
        desc       = "由浙江省政协主办的浙江树人大学(学院)坐落于杭州市城区,是改革开放以来我国最早成立并经国家教育部首批批准承认学历的全日制民办本科高校之一。";
        Page.Title = title + " - 浙江树人大学招生网";
    }
Ejemplo n.º 5
0
 private void BindData()
 {
     zs.BLL.Tbl_News bll = new zs.BLL.Tbl_News();
     UsersBind(bll.GetModelList("1=1 order by addtime desc"), 15);
 }
Ejemplo n.º 6
0
 private void InitData()
 {
     zs.BLL.Tbl_News bll = new zs.BLL.Tbl_News();
     this.Repeater1.DataSource = bll.GetModelList("1=1", 5, "id desc");
     this.Repeater1.DataBind();
 }