protected void ShowBlogPostInfo(BLOGDB db)
        {
            bool   valid  = true;
            string blogid = Request.QueryString["blogid"];

            if (String.IsNullOrEmpty(blogid))
            {
                valid = false;
            }

            if (valid)
            {
                BLOGPOST blogpost_record = db.FindBlogPost(Int32.Parse(blogid));

                blogpost_title_head.InnerHtml = blogpost_record.GetBPTitle();
                blogpost_title.InnerHtml      = blogpost_record.GetBPTitle();
                blogpost_body.InnerHtml       = blogpost_record.GetBPBody();
            }
            else
            {
                valid = false;
            }
            if (!valid)
            {
                blog.InnerHtml = "There was an error finding that blog post";
            }
        }
Exemple #2
0
        protected void ShowBlogInfo(BLOGDB db)
        {
            bool   valid  = true;
            string blogid = Request.QueryString["blogid"];

            if (String.IsNullOrEmpty(blogid))
            {
                valid = false;
            }

            if (valid)
            {
                Debug.WriteLine("is this it?");
                BLOGPOST blog_record = db.FindBlogPost(Int32.Parse(blogid));
                update_title.InnerHtml = blog_record.GetBPTitle();
                blog_title.Text        = blog_record.GetBPTitle();
                blog_post.Text         = blog_record.GetBPBody();
            }

            if (!valid)
            {
                blog.InnerHtml = "There was an error updating your blog";
            }
        }