Пример #1
0
        protected void ShowPageInfo(htmldb db)
        {
            bool   valid   = true;
            string html_id = Request.QueryString["html_id"];

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

            if (valid)
            {
                HTTP_Page page_record = db.Find_Page(Int32.Parse(html_id));

                html_tag_title.InnerHtml = page_record.GetPageTitle();
                html_tag_desc.InnerHtml  = page_record.GetPageBody();
            }
            else
            {
                valid = false;
            }

            if (!valid)
            {
                html_element.InnerHtml = "There is an error finding a page.";
            }
        }
Пример #2
0
        protected void ShowPageInfo(htmldb db)
        {
            bool   valid   = true;
            string html_id = Request.QueryString["html_id"];

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

            if (valid)
            {
                HTTP_Page page_record = db.Find_Page(Int32.Parse(html_id));
                html_tag.Text  = page_record.GetPageTitle();
                html_body.Text = page_record.GetPageBody();
            }


            if (!valid)
            {
                update_element.InnerHtml = html_id;
            }
        }