protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            if (loadFlag)
            {
                if (dojoMemberTypeID > 0)
                {
                    obj             = new DojoMemberType(dojoMemberTypeID);
                    headerText.Text = "Edit  - " + obj.ToString();
                }
                else if (dojoMemberTypeID <= 0)
                {
                    obj             = new DojoMemberType();
                    headerText.Text = "Add ";
                }

                // Bind Default Data
                tbName.Text             = obj.Name;
                tbDescription.Text      = obj.Description;
                tbOrderNum.Text         = obj.OrderNum.ToString();
                tabstrip.SelectedTab    = tabstrip.Tabs[0];
                multipage.SelectedIndex = 0;
            }
        }
        protected override void RenderContent(HtmlTextWriter output)
        {
            if (dojoMemberTypeID == 0)
            {
                output.WriteFullBeginTag("tr");
                output.WriteBeginTag("td");
                output.WriteAttribute("class", "row1");
                output.WriteAttribute("colspan", "2");
                output.Write(HtmlTextWriter.TagRightChar);

                output.Write("The DojoMemberType 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(dojoMemberType.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("&nbsp;");
            btCancel.RenderControl(output);
            output.WriteEndTag("td");
            output.WriteEndTag("tr");
        }
 protected override void OnPreRender(EventArgs e)
 {
     if (dojoMemberTypeID != 0)
     {
         dojoMemberType = new DojoMemberType(dojoMemberTypeID);
         text           = "Delete - " + dojoMemberType.ToString();
     }
     else
     {
         text = "Delete ";
     }
     EnsureWindowScripts();
 }
        protected override void OnPreRender(EventArgs e)
        {
            if (dojoMemberTypeID != 0)
            {
                dojoMemberType = new DojoMemberType(dojoMemberTypeID);

                #region Bind Default Folder

                //
                // Set Field Entries
                //

                ltName.Text        = dojoMemberType.Name.ToString();
                ltDescription.Text = dojoMemberType.Description.ToString();
                ltOrderNum.Text    = dojoMemberType.OrderNum.ToString();

                //
                // Set Children Selections
                //

                // ParentType

                if (dojoMemberType.ParentType != null)
                {
                    ltParentType.Text = dojoMemberType.ParentType.ToString();
                }
                else
                {
                    ltParentType.Text = string.Empty;
                }


                #endregion

                #region Bind _system Folder

                //
                // Set Field Entries
                //


                //
                // Set Children Selections
                //


                #endregion

                text = "View  - " + dojoMemberType.ToString();
            }
        }
        protected override void OnPreRender(EventArgs e)
        {
            if (loadFlag)
            {
                if (dojoMemberTypeID > 0)
                {
                    obj  = new DojoMemberType(dojoMemberTypeID);
                    text = "Edit  - " + obj.ToString();
                }
                else if (dojoMemberTypeID <= 0)
                {
                    obj  = new DojoMemberType();
                    text = "Add ";
                }

                //
                // Set Field Entries
                //
                tbName.Text        = obj.Name;
                tbDescription.Text = obj.Description;
                tbOrderNum.Text    = obj.OrderNum.ToString();

                //
                // Set Children Selections
                //
                if (obj.ParentType != null)
                {
                    foreach (ListItem item in msParentType.Items)
                    {
                        item.Selected = obj.ParentType.ID.ToString() == item.Value;
                    }
                }
                else
                {
                    msParentType.SelectedIndex = 0;
                }
            }
        }