void BindArticle()
        {
            var ArticleBLL = new ArticleBLL();
            var list       = ArticleBLL.GetAll(new Article(), "Enabled=0 and Author=" + LoginUser.ID);

            ArticleReapter.DataSource = list;
            ArticleReapter.DataBind();
        }
Exemple #2
0
        void BindArticleList()
        {
            var bll  = new ArticleBLL();
            var list = bll.GetAll(new Article(), "enabled=1 and Author=" + LoginUser.ID);

            ArticleReapter.DataSource = list;
            ArticleReapter.DataBind();
        }
Exemple #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         var articleBLL = new ArticleBLL();
         var list       = articleBLL.GetAll(new Article(), "enabled=1");
         ArticleGridView.DataSource = list;
         ArticleGridView.DataBind();
     }
 }