protected void Page_Load(object sender, EventArgs e)
    {
        if (!StopProcessing)
        {
            // Strings
            lblAvatar.Text    = GetString("MyAccount.ForumAvatar");
            lblNickName.Text  = GetString("MyAccount.ForumNickName");
            lblSignature.Text = GetString("MyAccount.ForumSignature");
            lblEmail.Text     = GetString("MyAccount.MessagingEmail");
            btnOk.Text        = GetString("General.Ok");

            UserInfo cui = UserInfoProvider.GetUserInfo(CMSContext.CurrentUser.UserID);

            if (cui != null)
            {
                // Load values
                if (!RequestHelper.IsPostBack())
                {
                    txtNickName.Text  = cui.UserNickName;
                    txtSignature.Text = cui.UserSignature;
                    txtEmail.Text     = cui.UserMessagingNotificationEmail;
                }

                // Set user picture form control
                UserPictureFormControl.UserInfo = cui;
            }

            // IE6 design fix
            if (CMSContext.GetBrowserClass() == "IE6")
            {
                txtSignature.Width = 280;
            }
        }
    }
    protected void Page_PreRender(object sender, EventArgs e)
    {
        // Set browser class
        SpellingBody.Attributes.Add("class", CMSContext.GetBrowserClass());

        // Register the scripts
        ScriptHelper.RegisterStartupScript(this, typeof(string), "Init_" + ClientID, ScriptHelper.GetScript("initialize(\"" + WordIndex.ClientID + "\", \"" + CurrentText.ClientID + "\", \"" + ElementIndex.ClientID + "\", \"" + SpellMode.ClientID + "\", \"" + StatusText.ClientID + "\", \"" + ReplacementWord.ClientID + "\");"));
    }