Пример #1
0
        protected void btnSacuvaj_Click(object sender, EventArgs e)
        {
            ekogradnjaBE.Page page = new ekogradnjaBE.Page();
            page.IdPage      = int.Parse(txtIdPage.Text);
            page.Title       = txtTitle.Text;
            page.Description = txtDescription.Text;
            page.Keywords    = txtKeywords.Text;
            page.Content     = txtContent.Text;
            page.Url         = txtUrl.Text;

            PageBL.Save(page, true);
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string query = Page.Request["url"];

                ekogradnjaBE.Page page = PageBL.LoadPage(0, query);

                lblNaslov.Text       = page.Title;
                txtContent.InnerHtml = page.Content;
                Page.Title           = page.Title;
            }
        }