RadSpell 3.0 uses lightweight AJAX callbacks to the server where its spellchecking engine resides. The AJAX callbacks are made to a special HttpHandler which takes care of all actions done by the user, such as spellchecking, retrieving wrong word suggestions, adding custom words, etc.
In order to use this mechanism you need to setup the SpellCheck HttpHandler in one of the following ways:
- Register the HttpHandler in the application’s web.config file
- Open the application’s web.config file, located at the root folder of your application.
- In the <system.web> section, locate the <httpHandlers> subsection. If it is missing, create it:
<system.web> <httpHandlers></httpHandlers> </system.web> |
- Inside the <httpHandlers> section add the following declaration:
<add verb="POST" type="Telerik.WebControls.SpellCheckHandler, RadSpell.Net2" path="Telerik.RadSpellCheckHandler.ashx"/> |
- Create a new text file, named Telerik.RadSpellCheckHandler.ashx, inside the ~/RadControls/Spell folder, where the tilde (~) represents the application’s root folder. Put the following text in that file:
<%@ WebHandler language="c#" Class="Telerik.WebControls.SpellCheckHandler" %> |
GAC configuration:
If the RadSpell.Net2.dll is placed in the GAC (Clobal Assemly Cache), here is the configuration for the two methods of usage above:
-
Declare the handler in the web.config file as shown below:
<system.web> <httpHandlers> <add verb="POST" type="Telerik.WebControls.SpellCheckHandler, RadSpell.Net2, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2" path="Telerik.RadSpellCheckHandler.ashx"/> </httpHandlers> </system.web> |
-
Edit the Telerik.RadSpellCheckHandler.ashx as follows:
<%@ WebHandler language="c#" Class="Telerik.WebControls.SpellCheckHandler, RadSpell.Net2, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b5dad7bf2bf594c2" %> |