Knowledge Base > RichTextBox > Installation Knowledge Base Home | Login
Search the Knowledge Base
 
Start Search in the Following Category

How do I set up the Spellchecker spellchecker.aspx file.

Unless you have a specific reason, the spellchecker.aspx file that comes with the sample files should always be used.You will find the spellcheck.aspx file within the samples that came with the RichTextBox installer.

 

Use the appropriate file depending on the .NET Framework version running on your server.

Installed directory: \RichTextBox v2.0\SpellCheck\ASP.NET v1.0

Installed directory: \RichTextBox v2.0\SpellCheck\ASP.NET v1.1 

 

RichTextBox will automatically “Out of the box” look for the spellchecker.aspx file at the top of your web apps directory or virtual directory.

e.g.

     http://localhost/myapp/spellchecker.aspx

     C:\Inetpub\wwwroot\myapp\spellchecker.aspx

 

If your application is within a virtual directory, it may look like this

C:\workspace\myapp\spellchecker.aspx

 

If you wish, or need to place the spellchecker.aspx file in a different location, there are two ways to set up RichTextBox to find the file.

 

1: Use the RichTextBox SpellCheckerUrl Property on the page (or within the code) containing the RichTextBox control.

e.g.

<script runat="server">

    private void Page_Load(object sender, System.EventArgs e)

    {

            myRTB.SpellCheckerUrl = “/myapp/newDirectory/spellcheck.aspx";

    }

</script>

 

OR

 

<RTB:RICHTEXTBOX id="myRTB" runat="server" SpellCheckerUrl=“/myapp/newDirectory/spellcheck.aspx"></RTB:RICHTEXTBOX>

 

 

2: Globally across the app within the web.config file

            e.g.

            <appSettings>

                        <add key="RichTextBoxSpellCheckerUrl" value="/myapp/newDirectory/spellcheck.aspx"/>

            </appSettings>



Did this page answer your question? If not, try the Forums or contact us.

Copyright Richer Components 2005. All rights reserved. No part of this article may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise) without the prior written permission of Richer Components. All brand names and product names used in this article are trade names, service marks, trademarks, or registered trademarks of their respective owners.


Knowledge Base Software - myKB.com