protected override void OnPreRender(EventArgs e)
        {
            switch (selectedTab)
            {
            case Tab.Disabled:
                btOk.CausesValidation = false;
                break;

            case Tab.Create:
                if (registrationID != 0 && registration == null)
                {
                    registration = new DojoSeminarRegistration(registrationID);
                }
                if (registration != null)
                {
                    tbName.Text          = registration.Contact.FullName;
                    tbAddress1.Text      = registration.Contact.Address1;
                    tbAddress2.Text      = registration.Contact.Address2;
                    tbCity.Text          = registration.Contact.City;
                    tbStateProvince.Text = registration.Contact.StateProvince;
                    tbPostalCode.Text    = registration.Contact.PostalCode;
                    tbCountry.Text       = registration.Contact.Country;
                    tbHomePhone.Text     = registration.Contact.HomePhone;
                    tbWorkPhone.Text     = registration.Contact.WorkPhone;
                    tbEmail1.Text        = registration.Contact.Email1;
                    if (registrationOptions == null)
                    {
                        DojoSeminarRegistrationOptionManager m = new DojoSeminarRegistrationOptionManager();
                        registrationOptions = m.GetCollection("ParentRegistrationID=" + registrationID,
                                                              string.Empty, null);
                    }
                    foreach (ListItem i in ddClassUnits.Items)
                    {
                        i.Selected = i.Value == registration.classUnits.ToString();
                    }
                }
                break;

            case Tab.Verify:
                btOk.CausesValidation = false;
                goto case Tab.Create;

            case Tab.Payment:
                btOk.CausesValidation = false;
                break;

            case Tab.Locked:
                btOk.CausesValidation = false;
                break;
            }

            setValidators(selectedTab);
        }
        /// <summary>
        /// Render this control to the output parameter specified.
        /// </summary>
        /// <param name="output"> The HTML writer to write out to </param>
        protected override void RenderContent(HtmlTextWriter output)
        {
            DojoSeminarRegistrationOptionManager    m = new DojoSeminarRegistrationOptionManager();
            DojoSeminarRegistrationOptionCollection dojoSeminarRegistrationOptionCollection = m.GetCollection(string.Empty, string.Empty, null);

            // Render Header Row
            this.headerLockEnabled = true;
            RenderRow(this.HeaderRowCssClass, );

            bool   rowflag = false;
            string rowCssClass;

            //
            // Render Records
            //
            foreach (DojoSeminarRegistrationOption dojoSeminarRegistrationOption in dojoSeminarRegistrationOptionCollection)
            {
                if (rowflag)
                {
                    rowCssClass = defaultRowCssClass;
                }
                else
                {
                    rowCssClass = alternateRowCssClass;
                }
                rowflag = !rowflag;
                output.WriteBeginTag("tr");
                output.WriteAttribute("i", dojoSeminarRegistrationOption.ID.ToString());
                output.WriteLine(HtmlTextWriter.TagRightChar);
                output.Indent++;

                output.Indent--;
                output.WriteEndTag("tr");
                output.WriteLine();
            }
        }