void BindArticle() { var ArticleBLL = new ArticleBLL(); var list = ArticleBLL.GetAll(new Article(), "Enabled=0 and Author=" + LoginUser.ID); ArticleReapter.DataSource = list; ArticleReapter.DataBind(); }
void BindArticleList() { var bll = new ArticleBLL(); var list = bll.GetAll(new Article(), "enabled=1 and Author=" + LoginUser.ID); ArticleReapter.DataSource = list; ArticleReapter.DataBind(); }
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(); } }