protected override void OnPreRender(EventArgs e) { if (yariMediaKeywordID != 0) { yariMediaKeyword = new YariMediaKeyword(yariMediaKeywordID); #region Bind Default Folder // // Set Field Entries // ltKeyword.Text = yariMediaKeyword.Keyword.ToString(); #endregion #region Bind _system Folder // // Set Field Entries // #endregion text = "View - " + yariMediaKeyword.ToString(); } }
protected override void RenderContent(HtmlTextWriter output) { if (yariMediaKeywordID == 0) { output.WriteFullBeginTag("tr"); output.WriteBeginTag("td"); output.WriteAttribute("class", "row1"); output.WriteAttribute("colspan", "2"); output.Write(HtmlTextWriter.TagRightChar); output.Write("The YariMediaKeyword 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(yariMediaKeyword.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 (yariMediaKeywordID != 0) { yariMediaKeyword = new YariMediaKeyword(yariMediaKeywordID); text = "Delete - " + yariMediaKeyword.ToString(); } else { text = "Delete "; } EnsureWindowScripts(); }
protected override void OnPreRender(EventArgs e) { if (yariMediaKeywordID != 0 & loadFlag) { editYariMediaKeyword = new YariMediaKeyword(yariMediaKeywordID); // // Set Field Entries // tbKeyword.Text = editYariMediaKeyword.Keyword; Text = "Edit - " + editYariMediaKeyword.ToString(); } else { Text = "Add "; } }
protected override void OnPreRender(EventArgs e) { if (loadFlag) { if (yariMediaKeywordID > 0) { obj = new YariMediaKeyword(yariMediaKeywordID); text = "Edit - " + obj.ToString(); } else if (yariMediaKeywordID <= 0) { obj = new YariMediaKeyword(); text = "Add "; } // // Set Field Entries // tbKeyword.Text = obj.Keyword; } }