Server-side spell check

2 posts, 0 answers
  1. Jon A.
    Jon A. avatar
    32 posts
    Member since:
    Feb 2003

    Posted 20 Jul 2008 Link to this post

    Hi,

    Is it possible to perform a spell check without user interaction and entirely on the server side?  I'd like to call a method that runs a spell check on a segment of text, and then return a list of misspelled words  Is this possible?

    Thanks
  2. George
    Admin
    George avatar
    859 posts

    Posted 22 Jul 2008 Link to this post

    Hi Jon,

    Please review the following code that demonstrates how to achieve the desired behavior:
    protected void Page_Load(object sender, EventArgs e)  
    {  
        SpellChecker spell = new SpellChecker(@"C:\Projects\RadEditor Pojects\RadEditorPrometheus 8.1.SP2\App_Data\RadSpell");  
        spell.Text = "Textt to Checkk";  
        spell.CheckText();  
        SpellCheckErrors errors = spell.Errors;  
        foreach (SpellCheckError error in errors)  
        {  
            Page.Response.Write(error.MistakenWord.ToString()+"</br>");  
        }  

    I hope this helps.

    Sincerely,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top