Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
    • Overview
    • Installation & Deployement
    • EO.Web ToolTip
    • EO.Web Rating
    • EO.Web Slider & RangeSlider
    • EO.Web ListBox
    • EO.Web ComboBox
    • EO.Web Captcha
    • EO.Web ASPX To PDF
    • EO.Web Slide
    • EO.Web Flyout
    • EO.Web EditableLabel
    • EO.Web ImageZoom
    • EO.Web Floater
    • EO.Web Downloader
    • EO.Web ColorPicker
    • EO.Web HTML Editor
    • EO.Web File Explorer
    • EO.Web SpellChecker
    • EO.Web Grid
    • EO.Web MaskedEdit
    • EO.Web Splitter
    • EO.Web Menu
    • EO.Web Slide Menu
    • EO.Web TabStrip
    • EO.Web TreeView
    • EO.Web Calendar
    • EO.Web Callback
    • EO.Web MultiPage
    • EO.Web Dialog
    • EO.Web AJAXUploader
    • EO.Web ProgressBar - Free!
    • EO.Web ToolBar - Free!
  • EO.WebBrowser
  • EO.Wpf
  • Common Topics
  • Reference
Input Validation

Using EO.Web Captcha is very similar to using standard ASP.NET validation controls. It supports ValidationGroup property and automatically participate page validation. After placing an EO.Web Captcha control in the page, you can use the following code to determine whether user has entered the correct CAPTCHA code:

//Use EO.Web.Captcha's IsValid property
if (Captcha1.IsValid)
{
    .....
}

//Or use Page.IsValid
if (Page.IsValid)
{
    ....
}

Note that you must ensure page validation is triggered beore checking Captcha.IsValid or Page.IsValid. For example, if a 's CausesValidation is set to false, then clicking the button will not trigger the page's validation logic thus will not update Captcha.IsValid.