RadCaptcha not validating

2 posts, 0 answers
  1. mdk
    mdk avatar
    24 posts
    Member since:
    May 2007

    Posted 16 Sep 2009 Link to this post

    Hey guys,
    I'm using a RadCaptcha that I set up according to the help files but it's not doing anything. It looks fine; no errors; just no validation. Any help would be appreciated. Here is my html:

    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="newslettersignup.aspx.vb" Inherits="SSC.AccessPharmacy.Web.newslettersignup" %>
    <%@ Register tagPrefix="SSC" tagName="Header" src="userControls/publicHeaderA.ascx"%>
    <%@ Register tagPrefix="SSC" tagName="Footer" src="userControls/publicFooter.ascx" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
        <HEAD>
            <title><%=GetTitle() %></title>
            <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
            <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
            <meta content="JavaScript" name="vs_defaultClientScript">
            <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
            <LINK href="../global.css" type="text/css" rel="stylesheet">
            <script language="javascript" src="../Global.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD>
        <body style="MARGIN: 0px" bgColor="#a3a7b3">
            <SSC:HEADER id="ucHeader" runat="server" ></SSC:HEADER>
            <table cellSpacing="0" cellPadding="0" width="780" border="0">
                    <TBODY>
                        
                        <tr height="100%">
                            
                            <td width="100%">
                                
                                            <table cellSpacing="0" cellPadding="10" width="100%" bgColor="#ffffff" border="0">
                                                <tr>
                                                    <td>

            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <form method="post" id="Form2" style="margin-bottom: 0" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                    <TBODY>
                        <tr>
                            <td>
                            <span class="font14" style="color:#0F424F;"><b>Sign up for the AccessPharmacy Newsletter and Quick Test!</b></span>
                            <br><br>
                            <asp:Label ID="lblGreeting" Runat="server"><p class="font11">The monthly AccessPharmacy email newsletter and the semi-monthly Quick Test are free and informative features that keep you current with the latest updates to AccessPharmacy. Find out here first about the new resources, videos, animations, and text updates to leading medical titles such as <i>Harrison's Online, Pharmacotherapy,</i> and <i>Goodman & Gilman's The Pharmacological Basis of Therapeutics.</i> Quick Test, compiled by AccessPharmacys Editor-in-Chief Terry Schwinghammer, PharmD, lets you test your knowledge of key pharmacotherapy and pharmacology topics and compare your results to those of your peers. A valid email address must be provided to receive the AccessPharmacy newsletter. </p></asp:Label>
                            <p class="font11"><a target="_blank" href="acpharma_09-08.htm">View sample newsletter</a></p>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            <table border="0" width="730" cellpadding="0" cellspacing="0" style="MARGIN-LEFT: 10px" class="font11" id="tblSetup" runat="server">
                            <tr>
                                <td colspan = "2">
                                    <font color="#990000">Registration is required. Fields marked with an * are required.</font>
                                    <br><br class="Spacer5">
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 120px">*First Name</td>
                                <td><asp:TextBox Runat="server" ID="txtFirstName" Width="250" MaxLength="60" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: verdana" /><asp:Label Runat="server" ID="lblFirstNameError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please enter First Name</b></font></asp:Label><br><br class="Spacer5"></td>
                            </tr>
                            <tr>
                                <td style="width: 120px">*Last Name</td>
                                <td><asp:TextBox Runat="server" ID="txtLastName" Width="250" MaxLength="60" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: verdana" /><asp:Label Runat="server" ID="lblLastNameError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please enter  Last Name</b></font></asp:Label><br><br class="Spacer5"></td>
                            </tr>
                            <tr>
                                <td style="width: 120px">*Email</td>
                                <td><asp:TextBox Runat="server" ID="txtEmail" Width="250" MaxLength="60" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: verdana" /><asp:Label Runat="server" ID="lblEmailError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please enter Email Address</b></font></asp:Label><br><br class="Spacer5"></td>
                            </tr>
                                <tr>
                                    <td align="right" style="width: 120px"><asp:CheckBox Runat="server" ID="cbQuickTest" Checked="True" />&nbsp;<br><br class="Spacer5">
                                    </td>
                                    <td>Send me the Quick Test (semi-monthly) so I can test my knowledge of key pharmacotherapy and pharmacology topics.
                                    </td>
                                </tr>
                            <tr>
                                <td align="right" style="width: 120px"><asp:CheckBox Runat="server" ID="cbEmailAlert" Checked="True" />&nbsp;<br><br class="Spacer5"></td>
                                <td>Send me email alerting me of other special offers and discounts on McGraw-Hill Medical books.</td>
                            </tr>
                            
                            <tr>
                                <td colspan = "2">
                                <br><br class="Spacer5">
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 120px">*Organization</td>
                                <td><asp:TextBox Runat="server" ID="txtOrganization" Width="200" MaxLength="40" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: verdana"/><asp:Label Runat="server" ID="lblOrganizationError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please enter Organization</b></font></asp:Label><br><br class="Spacer5"></td>
                            </tr>
                            <tr>
                                <td style="width: 120px">*Job Title</td>
                                <td><asp:TextBox Runat="server" ID="txtJobTitle" Width="200" MaxLength="40" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: verdana"/><asp:Label Runat="server" ID="lblJobTitleError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please enter Job title</b></font></asp:Label><br><br class="Spacer5"></td>
                            </tr>
                            <tr>
                                <td style="width: 120px">*Profession</td>
                                <td><asp:dropdownlist ID="ddlProfession" Runat="server" DataValueField="professionID" DataTextField="name" CssClass="font12noMargin">
                                </asp:dropdownlist>
                                <asp:Label Runat="server" ID="lblProfessionError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please select Profession</b></font></asp:Label>
                                <br><br class="Spacer5"></td>
                            </tr>
                            <tr>
                                <td style="width: 120px">*Primary Interest</td>
                                <td> <asp:dropdownlist ID="ddlSpecialty" Runat="server" DataValueField="specialtyID" DataTextField="name" cssclass="font12noMargin" >
                              </asp:dropdownlist>
                               <asp:Label Runat="server" ID="lblSpecialtyError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please select Specialty</b></font></asp:Label>
                                <br><br class="Spacer5"></td>
                            </tr>
                            <tr>
                                <td style="width: 120px" valign="top">*Country</td>
                                <td><asp:dropdownlist Runat="server" ID="ddlCountries" Width="200" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid;  BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid;" CssClass="font12noMargin">
                                <asp:ListItem value=USA selected="True">United States</asp:ListItem>
                                <asp:ListItem value=CAN >Canada</asp:ListItem>
                                <asp:ListItem value=AFG >Afghanistan</asp:ListItem>
                                <!--Deleted some for this post-->
                                </asp:dropdownlist>
                                <br><br class="Spacer5">
                                </td>
                            </tr>
                            <tr>
                                <td colspan = "2">
                                <br><br class="Spacer5">
                                </td>
                            </tr>
                             <tr>
                                <td style="width: 120px">*Street Address</td>
                                <td><asp:TextBox Runat="server" ID="txtAddress1" Width="200" MaxLength="100" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: verdana"/><asp:Label Runat="server" ID="lblAddress1Error" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please enter Street Address</b></font></asp:Label><br><br class="Spacer5"></td>
                            </tr>
                            <tr>
                                <td style="width: 120px">
                                    Address (Cont'd)</td>
                                <td><asp:TextBox Runat="server" ID="txtAddress2" Width="200" MaxLength="100" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: verdana"/><br><br class="Spacer5"></td>
                            </tr>
                            <tr>
                                <td style="width: 120px">*City</td>
                                <td><asp:TextBox Runat="server" ID="txtCity" Width="200" MaxLength="100" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: verdana"/><asp:Label Runat="server" ID="lblCityError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please enter City</b></font></asp:Label><br><br class="Spacer5"></td>
                            </tr>
                            <tr>
                                <td style="width: 120px">*State or Province</td>
                                <td><asp:DropDownList Runat="server" ID="ddlStates" Width="200" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid;  BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid;"  CssClass="font12noMargin">
                                    <asp:ListItem>--Please select from list--</asp:ListItem>
                                    <asp:ListItem>--United States--</asp:ListItem>
                                    <asp:ListItem value=AL >Alabama</asp:ListItem>
                                    <asp:ListItem value=AK >Alaska</asp:ListItem>
                                    <!--Deleted some for this post-->
                                </asp:DropDownList><asp:Label Runat="server" ID="lblStateError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please select State</b></font></asp:Label><br><br class="Spacer5"></td>
                            </tr>
                            <%--<tr>
                                <td style="width: 120px">Province</td>
                                <td><br><br class="Spacer5"></td>
                            </tr>--%>
                            <tr>
                                <td style="width: 120px">*Zip/Postal Code</td>
                                <td><asp:TextBox Runat="server" ID="txtZip" Width="200" MaxLength="50" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: verdana"/><asp:Label Runat="server" ID="lblZipError" Visible="False"><font class="font11noMargin" color="#660000">&nbsp;<b><--- Please enter ZipCode</b></font></asp:Label><br><br class="Spacer5"></td>
                            </tr>
                            
                            <tr><td style="width: 120px">&nbsp;</td>
                            <td>
                            <br><br class="Spacer5">
                             <telerik:RadCaptcha ID="RadCaptcha1"  runat="server" ErrorMessage="Please enter code" ValidationGroup="SubmitGroup" ForeColor="Red">
                                                                    </telerik:RadCaptcha>
                            <asp:button ID="btnSubmit" Runat="server" Text="Submit" ValidationGroup="SubmitGroup"/>&nbsp;
                                <br><br class="Spacer5">
                                <asp:ValidationSummary ID="vs" runat="server" ValidationGroup="SubmitGroup" />
                            </td>
                            </tr>
                            </table>
                            
                            <table id="tblConfirm" runat="server" width="743" height="400" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td class="font11" valign="top">
                                            <b>Thank you for subscribing to the AccessPharmacy Newsletter!</b><br>
                                            <br class="Spacer8">
                                            You will receive the monthly newsletter via email starting next month.<br>
                                            <br class="Spacer8">
                                            <a href="../index.aspx">AccessPharmacy Home</a>
                                            </td>
                                    </tr>
                                </table>
                        
                    </td>
                        </tr>
                
                </TBODY></form>
            </table>

                                                    </td>
                                                </tr>
                                            </table>
                                    
                            </td>
                        </tr>
                </TBODY></table>
            <table cellSpacing="0" cellPadding="0" width="780" border="0">
                <tr>
                    <td><IMG src="/images/spacer.gif" width="5"></td>
                    <td width="775"><SSC:FOOTER id="ucFooter" runat="server"></SSC:FOOTER></td>
                </tr>
            </table>
        </body>
    </HTML>

  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 21 Sep 2009 Link to this post

    Hi Matt,

    I tried your code and it seems to be working fine on my side. Here is a link to a video captured while testing the project. You can see that the RadCaptcha is validating correctly. I have also attached the project to this thread. All you need to do is plug-in the DLLs and you can run the web-site.

    At this moment my suggestion is to give us more information about the problems you experience. Maybe the best idea is to send us a full running project (plug only the DLLs and run the project) where the issue can be observed.

    I am looking forward to your reply.

    Greetings,
    Pero
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top