示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (RouteData.Values["TITLE"] != null)
     {
         title = RouteData.Values["TITLE"].ToString();
         isQuestion();
     }
     rptrCategories.Bind(DALCategories.GetAll());
     rptLastPost.Bind(DALBlog.GetLastCount(3));
 }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string title = "";

            if (RouteData.Values["TITLE"] != null)
            {
                title = RouteData.Values["TITLE"].ToString();
                CATEGORIES c = DALCategories.GetTitle(title);
                rptPostTitle.Bind(DALBlog.GetByCategoriesID(c.ID));
            }

            rptrCategories.Bind(DALCategories.GetAll());
            rptLastPost.Bind(DALBlog.GetLastCount(3));
        }
示例#3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     rptrCategories.Bind(DALCategories.GetAll());
     rptPost.Bind(DALBlog.GetLastCount(1));
     rptLastPost.Bind(DALBlog.GetLastCount(3));
 }
示例#4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     rptrCategories.Bind(DALCategories.GetAll());
     rptLastPost.Bind(DALBlog.GetLastCount(3));
     rptQuestion.Bind(DALQUESTION.GetAll2().OrderBy(p => p.SORT));
 }
示例#5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.AsyncMode = true;
     rptrCategories.Bind(DALCategories.GetAll());
     rptLastPost.Bind(DALBlog.GetLastCount(3));
 }