protected void uiLinkButtonUpdate_Click(object sender, EventArgs e) { DBLayer db = new DBLayer(); db.SetPageContent(CurrentPage, Server.HtmlEncode(uiFCKeditorContent.Value), uiTextBoxTitle.Text, Server.HtmlEncode(uiFCKeditorContent_en.Value), uiTextBoxTitle_en.Text); uiTextBoxTitle.Text = ""; uiFCKeditorContent.Value = ""; uiTextBoxTitle_en.Text = ""; uiFCKeditorContent_en.Value = ""; CurrentPage = 0; uiPanelCurrentPages.Visible = true; uiPanelCurrent.Visible = false; BindData(); }
private void UpdateRecord() { DBLayer db = new DBLayer(); string filepath = ""; if (uiFileUploadMainPicturePath.HasFile) { uiFileUploadMainPicturePath.SaveAs(Server.MapPath("~/UploadedFiles/Pages/" + uiFileUploadMainPicturePath.FileName)); filepath = "/UploadedFiles/Pages/" + uiFileUploadMainPicturePath.FileName; } string content = Server.HtmlEncode( uiTextBoxContent.Text); db.SetPageContent(CurrentPage, content, filepath); }