Home About Us Services Products Clients Partners Contact Us
Search
 
Categories
 
News
QMSpellChecker-Quick Guide
 
Installation Guide

QMSpellChecker can be integrated in ASP.NET AJAX-Enabled Web Sites.

1.Downloading the software
QMSpellChecker can be downloaded from www.qmcpl.com/SpellChecker/SpellCheckerDownload.aspx as a zip file. When you have downloaded the package, unzip it to a convenient location on your hard disk for future use. There are following files in QMSpellChecker folder:

QMSpellChecker.dll
Add this to your Visual Studio Toolbox (As shown in Figure 4 & Figure 5 in step 2).

Copy and Paste following files in your application folder from
the downloaded zip files as shown in Figure 1, Figure 2 & Figure 3.

  • words-english.txt
  • words.txt
  • SpellChecker.lic

Note: At the IIS level, please give the write permissions to "words-english.txt" and "words.txt" files



Figure 1

Figure 2

Figure 3

2. Adding QMSpellChecker to the Visual Studio Toolbox
Right click on the Visual Studio 2005/2008 Toolbox and pick "Choose Items..." as shown in Figure 4. In the new dialog, click "Browse...", then pick the QMSpellChecker.dll which you downloaded and click "OK". You have now drag-and-drop access to QMSpellChecker for web application development. Figure 5 displays the QMSpellChecker Control in Toolbox.


Figure 4

Figure 5


Note: QMSpellChecker control should be dragged and dropped inside the <form></form> tag.

3. Add two properties to Spell Checker Control
After dragging the SpellChecker component onto a web form, you must add two properties.

  • SpellCheckerControlID: ID of TextBox.
  • TargetControlId: ID of Button which is responsible for popup the control.

4. Sample Source code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="QMSpellChecker" Namespace="QMSpellChecker" TagPrefix="QM" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div>
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
       <ContentTemplate>
             <asp:TextBox ID="TextBox1" TextMode="MultiLine" Width="300" Height="200" runat="server"></asp:TextBox>
             <asp:Button ID="Button1" runat="server" Text="Button" />
              <QM:SpellChecker SpellCheckerControlID="TextBox1" TargetControlId="Button1" ID="SpellChecker1" runat="server">
              </QM:SpellChecker>
       </ContentTemplate>
     </asp:UpdatePanel>
</div>
</form>
</body>
</html>

Note: The QMSpellChecker, texbox and button should be added inside the update panel.

 
 
Home | About Us | Careers | Visit Us | Advantages | Success Stories | Services | Clients | Partners | Support | Contact Us

© All Rights Reserved 2009. QMCPL. Privacy Policy