protected override void RenderContent(HtmlTextWriter output) { if (dojoSeminarRegistrationOptionID == 0) { output.WriteFullBeginTag("tr"); output.WriteBeginTag("td"); output.WriteAttribute("class", "row1"); output.WriteAttribute("colspan", "2"); output.Write(HtmlTextWriter.TagRightChar); output.Write("The DojoSeminarRegistrationOption 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(dojoSeminarRegistrationOption.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 (dojoSeminarRegistrationOptionID != 0) { dojoSeminarRegistrationOption = new DojoSeminarRegistrationOption(dojoSeminarRegistrationOptionID); text = "Delete - " + dojoSeminarRegistrationOption.ToString(); } else { text = "Delete "; } EnsureWindowScripts(); }
protected override void OnPreRender(EventArgs e) { if (loadFlag) { if (dojoSeminarRegistrationOptionID > 0) { obj = new DojoSeminarRegistrationOption(dojoSeminarRegistrationOptionID); text = "Edit - " + obj.ToString(); } else if (dojoSeminarRegistrationOptionID <= 0) { obj = new DojoSeminarRegistrationOption(); text = "Add "; } // // Set Field Entries // tbQuantity.Text = obj.Quantity.ToString(); tbTotalFee.Text = obj.TotalFee.ToString(); tbCostPerItem.Text = obj.CostPerItem.ToString(); // // Set Children Selections // if (obj.ParentOption != null) { foreach (ListItem item in msParentOption.Items) { item.Selected = obj.ParentOption.ID.ToString() == item.Value; } } else { msParentOption.SelectedIndex = 0; } if (obj.ParentRegistration != null) { foreach (ListItem item in msParentRegistration.Items) { item.Selected = obj.ParentRegistration.ID.ToString() == item.Value; } } else { msParentRegistration.SelectedIndex = 0; } } }
protected override void OnPreRender(EventArgs e) { if (loadFlag) { if (dojoSeminarRegistrationOptionID > 0) { obj = new DojoSeminarRegistrationOption(dojoSeminarRegistrationOptionID); headerText.Text = "Edit - " + obj.ToString(); } else if (dojoSeminarRegistrationOptionID <= 0) { obj = new DojoSeminarRegistrationOption(); headerText.Text = "Add "; } // Bind Default Data tbQuantity.Text = obj.Quantity.ToString(); tbTotalFee.Text = obj.TotalFee.ToString(); tbCostPerItem.Text = obj.CostPerItem.ToString(); if (obj.ParentOption != null) { foreach (ListItem item in comboParentOption.Items) { item.Selected = obj.ParentOption.ID.ToString() == item.Value; } } else { comboParentOption.SelectedIndex = 0; } if (obj.ParentRegistration != null) { foreach (ListItem item in comboParentRegistration.Items) { item.Selected = obj.ParentRegistration.ID.ToString() == item.Value; } } else { comboParentRegistration.SelectedIndex = 0; } tabstrip.SelectedTab = tabstrip.Tabs[0]; } }
protected override void OnPreRender(EventArgs e) { if (dojoSeminarRegistrationOptionID != 0) { dojoSeminarRegistrationOption = new DojoSeminarRegistrationOption(dojoSeminarRegistrationOptionID); #region Bind Default Folder // // Set Field Entries // ltQuantity.Text = dojoSeminarRegistrationOption.Quantity.ToString(); ltTotalFee.Text = dojoSeminarRegistrationOption.TotalFee.ToString(); ltCostPerItem.Text = dojoSeminarRegistrationOption.CostPerItem.ToString(); // // Set Children Selections // // ParentOption if (dojoSeminarRegistrationOption.ParentOption != null) { ltParentOption.Text = dojoSeminarRegistrationOption.ParentOption.ToString(); } else { ltParentOption.Text = string.Empty; } // ParentRegistration if (dojoSeminarRegistrationOption.ParentRegistration != null) { ltParentRegistration.Text = dojoSeminarRegistrationOption.ParentRegistration.ToString(); } else { ltParentRegistration.Text = string.Empty; } #endregion #region Bind _system Folder // // Set Field Entries // // // Set Children Selections // #endregion text = "View - " + dojoSeminarRegistrationOption.ToString(); } }