Class Captcha

A Captcha control that uses simple math expressions for validation before accepting input.

This control is fully self contained and carries the expected 'result' with it in ControlState data, so unlike image captcha there's no separate handler involved.

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      Westwind.Web.Controls.Captcha
public class Captcha : WebControl

Class Members

MemberDescription

Constructor

GenerateExpression

Method can be used to generate a new Expression object with new values to use. Use this method to update the wwCaptcha expression after you've saved an entry.

public void GenerateExpression()

DisplayMessage

The message that is displayed above the expression that is to be entered.

ErrorMessage

The error message that is displayed when the not validated

Timeout

The timeout for this message in minutes.

UniquePageId

An optional page identifier that has to be matched by the validation and is written into ViewState. Ensures that spammers can't just capture the full post buffer and repost to another page.

Validated

Set during validation

Requirements

Namespace: Westwind.Web.Controls
Assembly: westwind.web.webforms.dll

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic