Ejemplo n.º 1
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        // Set browser class
        SpellingBody.Attributes.Add("class", DocumentContext.GetBrowserClass());

        // Register the scripts
        string script = String.Format("initialize(\"{0}\", \"{1}\", \"{2}\", \"{3}\", \"{4}\", \"{5}\", \"{6}\", \"{7}\");", WordIndex.ClientID, CurrentText.ClientID, ElementIndex.ClientID, SpellMode.ClientID, StatusText.ClientID, ReplacementWord.ClientID, ResHelper.GetString("spellcheck.statustextcheck"), ResHelper.GetString("spellcheck.statustextfail"));

        ScriptHelper.RegisterStartupScript(this, typeof(string), "Init_" + ClientID, ScriptHelper.GetScript(script));
    }