|
addCustomDictionary(strFileName)
This method adds a custom dictionary to your application.
A custom dictionary is a text file of words, each one its own line. Ideally the words should be sorted in ASCII order (you can do this in SQL, Excel or EditPlus). If this file is edited - the update will automatically be detected by ASP DidYouMean.
Encoding large custom dictionaries occurs on IIS restart. It can be processor intensive for large files. We suggest using the dictionary encoder downloadable from www.aspdidyoumean.com
strFileName can either be a full path (C:\...) or a filename in C:\Program
Files\AspDidYouMean\Dictionaries.
A blank custom dictionary file is there for your convenience - custom.txt.
Example
<%
set objDYM = server.createObject("ASPDidYouMean.DidYouMean")
objDYM.addCustomDictionary("custom.txt")
%>
|