Server API Reference

Top  Previous  Next

Properties

The simplest edit control can be created by specifying just the ConnectionString and DictionaryTableName properties

ConnectionString

The ConnectionString property provides the information necessary to connect to the database. The connection string can either be an actual connection string or an alias which is resolved by finding a matching entry in the <connectionStrings> section of the web.config file. For details of specifying connection strings see the database connectivity section.

CreateButton

Indicates if a button is to be created. If set to true (default) a button is created in the element specified in the constructor which when clicked will initiate spell checking.

DictionaryTableName

The DictionaryTableName property specifies the name of the table that contains the dictionary entries. The table must contain 2 columns called pattern (the word) and soundex (the soundex pattern)

<DNL:DbNetSpell 
	id="DbNetSpell1" 
	runat="server" 
	ConnectionString = "DictionaryDatabase"
	DictionaryTableName = "english_us"
	>
	<SpellCheckElements>
		<DNL:SpellCheckElement Selector="biography"/>
	</SpellCheckElements>
</DNL:DbNetSpell>			

Run Sample

SpellCheckElements

Collection of SpellCheckElement objects that have the property Selector which contains either the ID of the element to be spell checked or a jQuery selector enabling multiple elements to be selected.

Run Sample

SpellClientEvents

The SpellClientEvents collection allows you to specify handlers for any of the client-side events that are available.