CAPTCHA Control

Apr 28, 2009 at 6:21 PM

Does this control work in VS2008? 

I'm just showing a tiny little bitmap, maybe about 8 pixels wide.  Details:

SharpPieces.Web.Control runtime version:  v2.0.50727

Visual Studio 2008 - Version 9.0.30729.1 SP

.NET Framework Version 3.5 SP1

.aspx code:

     <%@ Register Assembly="SharpPieces.Web.Controls"
                  Namespace="SharpPieces.Web.Controls"
                  TagPrefix="piece" %> 
     .
     .
     .
     <tr>
        <td align="left" width="80px">
           <asp:Label ID="VerificationLabel" runat="server">Verification:</asp:Label>
        </td>
        <td align="left" width="208px">
            <piece:CaptchaImage ID="CaptchaImage2"
                                CharArray="abc345KLM"
                                Height="50px"
                                ReadnessLevel="Normal"
                                runat="server"
                                ServerCacheDuration="10"
                                Width="200px">
                <Text Font="ArialBlack, 22pt, style=Bold"
                      HorizontalAlign="Center"
                      VerticalAlign="Center"/>
            </piece:CaptchaImage>
        </td>
     </tr>

C# code-behind:

     nothing yet...

web.config:

  <httpHandlers>
     .
     .
     .
   <add path="ci.axd"
        verb="*"
        type="SharpPieces.Web.Controls.CaptchaImageProvider,
              SharpPieces.Web.Controls,              
              Version=2.3.0.0,
              Culture=neutral,
              PublicKeyToken=null"
        validate="true" />
     .
     .
     .
  </httpHandlers>

I got the DLL and the demo app from codeplex - the demo app doesn't run as it shows a fatal build error when compiling:  "could not load type 'SharpPieces.DemoApp.UserControls.ReleaseDownload".

Can anyone offer some advice?  Thanks.

\cbf

Apr 29, 2009 at 5:49 PM

Problem solved.  yes, this works find in VS 2008.

I'm trying to implement this is someone else's code and am being introduced to each nuance, bit by bit.

Why was the CAPTCHA image so tiny?  Found this in the stylesheet:

img {
   width:8px;
}

Some schwanzlutscher thought this was a good idea.

Sorry to bother everyone.

\cbf



 

 

 

 

 

 

Coordinator
Apr 29, 2009 at 6:53 PM
Great! Glad that it works :)