Knowledgebase Home Page  >  RapidSpell Web ASP.NET  >  Appearance Customization
Search the Knowledge Base
How do I show the number of errors found?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=36&catId=57

Options

Print this page
Email this to a friend
You can very easily show the number of errors by changing the popup aspx code to;
 
<%@ Page language="c#" Codebehind="PopUp.aspx.cs" AutoEventWireup="false" Inherits="RapidSpellWeb_Demo_CSharp.PopUp" validateRequest=false%>
<%@ Register TagPrefix="rapidspellweb" Namespace="Com.Keyoti.RapidSpell" Assembly="Keyoti.RapidSpellWeb" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
 <HEAD>
  <title>PopUp</title>
  <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
  <meta name="CODE_LANGUAGE" Content="C#">
  <meta name="vs_defaultClientScript" content="JavaScript">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  <script language=C# runat=server>
   int errors=0;
 
   
  </script>

 </HEAD>
 <body>
  <div align="center">
   <%
   RapidSpellWeb1.CheckerEngine.Check(Request.Params["TextToCheck"]);
   while(RapidSpellWeb1.CheckerEngine.NextBadWord()!=null)
    errors++;
   %>

   <form id="PopUp" method="post" runat="server">
    <%=errors%> error<%=errors==1?" was":"s were"%> found.
    <RapidSpellWeb:RapidSpellWeb id="RapidSpellWeb1" runat="server" Width="100%">
    </RapidSpellWeb:RapidSpellWeb>
   </form>
  </div>
 </body>
</HTML>

Related Questions:

Attachments:

No attachments were found.