protected override void OnPreRender(EventArgs e) { if (loadFlag) { if (dbContentCommentID > 0) { obj = new DbContentComment(dbContentCommentID); text = "Edit - " + obj.ToString(); } else if (dbContentCommentID <= 0) { obj = new DbContentComment(); text = "Add "; } // // Set Field Entries // ltCreateDate.Text = obj.CreateDate.ToString(); ltModifyDate.Text = obj.ModifyDate.ToString(); tbName.Text = obj.Name; tbEmail.Text = obj.Email; tbUrl.Text = obj.Url; tbIP.Text = obj.IP; tbBody.Text = obj.Body; } }
protected override void RenderContent(HtmlTextWriter output) { if (dbContentCommentID == 0) { output.WriteFullBeginTag("tr"); output.WriteBeginTag("td"); output.WriteAttribute("class", "row1"); output.WriteAttribute("colspan", "2"); output.Write(HtmlTextWriter.TagRightChar); output.Write("The DbContentComment selected does not exist."); output.WriteEndTag("td"); output.WriteEndTag("tr"); return; } output.WriteFullBeginTag("tr"); output.WriteBeginTag("td"); output.WriteAttribute("class", "row1"); output.WriteAttribute("colspan", "2"); output.Write(HtmlTextWriter.TagRightChar); output.Write("<strong>Warning:</strong> This action deletes the selected ." + "<em>Use with caution, this option cannot be undone.</em>"); output.WriteEndTag("td"); output.WriteEndTag("tr"); output.WriteFullBeginTag("tr"); output.WriteBeginTag("td"); output.WriteAttribute("class", "row1"); output.WriteAttribute("nowrap", "true"); output.WriteAttribute("valign", "top"); output.Write(HtmlTextWriter.TagRightChar); output.Write(" to delete: "); output.WriteEndTag("td"); output.WriteBeginTag("td"); output.WriteAttribute("class", "row1"); output.WriteAttribute("width", "100%"); output.Write(HtmlTextWriter.TagRightChar); output.Write(dbContentComment.ToString()); output.WriteEndTag("td"); output.WriteEndTag("tr"); output.WriteFullBeginTag("tr"); output.WriteBeginTag("td"); output.WriteAttribute("colspan", "2"); output.WriteAttribute("align", "right"); output.WriteAttribute("class", "row1"); output.Write(HtmlTextWriter.TagRightChar); btOk.RenderControl(output); output.Write(" "); btCancel.RenderControl(output); output.WriteEndTag("td"); output.WriteEndTag("tr"); }
protected override void OnPreRender(EventArgs e) { if (dbContentCommentID != 0) { dbContentComment = new DbContentComment(dbContentCommentID); text = "Delete - " + dbContentComment.ToString(); } else { text = "Delete "; } EnsureWindowScripts(); }
protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (dbContentCommentID != 0) { dbContentComment = new DbContentComment(dbContentCommentID); text = "Delete - " + dbContentComment.ToString(); } else { text = "Delete "; } }
protected override void OnPreRender(EventArgs e) { if (dbContentCommentID != 0) { dbContentComment = new DbContentComment(dbContentCommentID); #region Bind _system Folder // // Set Field Entries // ltCreateDate.Text = dbContentComment.CreateDate.ToString(); ltModifyDate.Text = dbContentComment.ModifyDate.ToString(); #endregion #region Bind New Folder Folder // // Set Field Entries // ltName.Text = dbContentComment.Name.ToString(); ltEmail.Text = dbContentComment.Email.ToString(); ltUrl.Text = dbContentComment.Url.ToString(); ltIP.Text = dbContentComment.IP.ToString(); ltBody.Text = dbContentComment.Body.ToString(); #endregion text = "View - " + dbContentComment.ToString(); } }
protected override void OnPreRender(EventArgs e) { if (dbContentCommentID != 0 & loadFlag) { editDbContentComment = new DbContentComment(dbContentCommentID); // // Set Field Entries // ltCreateDate.Text = editDbContentComment.CreateDate.ToString(); ltModifyDate.Text = editDbContentComment.ModifyDate.ToString(); tbName.Text = editDbContentComment.Name; tbEmail.Text = editDbContentComment.Email; tbUrl.Text = editDbContentComment.Url; tbIP.Text = editDbContentComment.IP; tbBody.Text = editDbContentComment.Body; text = "Edit - " + editDbContentComment.ToString(); } else { text = "Add "; } }