Quick Links
ASP.NET Super Form - Validate using CompareValidator
Registration Form
E-mail Address
Confirm E-mail
FirstName
LastName
Insert
The Super Form allows developers to validate the data typed by the end users into the fields using various approaches.
This sample shows how to use a
CompareValidator
control to ensure that two fields of the form contain the same data. Use the
Validators
collection to add a
CompareValidator
to one of the fields. When setting the
ControlToCompare
property of the validator, use the DataField of the field that will be used in the comparison, preceded by the ID of the form and a underline.
In this sample we added a
CompareValidator
validator in the
Validators
collection of the "ComfirmEmailAddress" field, to compare it against the "EmailAddress" field. Thus, we set the
ControlToCompare
property of the validator to "SuperForm1_EmailAddress" ("SuperForm1" is the ID of the form control).
obout.com
obout.com Home
News
Super Form Home
Super Form Home
Examples
- 64
First Look
- 2
Quick Setup
Checkout
Appearance
- 3
Live Styles
Live Styles for DateFields
Auto Format
Fields
- 10
Auto Generate Fields
BoundField
CheckBoxField
CommandField
DateField
DateField with Time
DropDownListField
MultiLineField
Password Field
TemplateField
Add / Edit / Delete
- 7
Auto Generate Command Buttons
Customize Command Buttons
Request User Confirmation
Add-Only Form
Edit-Only Form
Default Values for Add
Save using Stored Procedures
Layout
- 7
Vertical / Horizontal Direction
Field Sets
Field Sets with Column Span
Field Sets with Tabs
Multi-Step Wizard
Multi-Step Survey
Width
Master / Detail
- 4
Master Grid
Master ComboBox
Master ListBox
Add / Edit in Separate Page
Templates
- 11
ComboBox Field
On-Demand ComboBox Field
Cascading ComboBox Field
MultiLevel ComboBox Field
Multi Select ComboBox Field
ListBox Field
Multi Select ListBox Field
HTML Editor Field
FileUpload Field
CheckBoxList Field
RadioButtonList Field
Validation
- 9
Required Fields
Type Validation
ReqEx & Custom Validation
Validation Summary
Validator Callout
Validate Super Form inside Grid
Validate Custom DropDownListField
Validate using CompareValidator
Validate Linked Fields
Masks / Filters
- 2
Edit Masks
Filters
Linked Fields / Buttons
- 4
Enable / Disable Command Buttons
Enable / Disable Linked Fields
Show / Hide Linked Fields
Conditional Linked Fields
Client Side API
- 1
External Buttons
Server Side API
- 1
Focus
Localization
- 1
Localize Date Fields
Integration
- 2
Row Edit Template for Grid
Grid Editor inside Window
Knowledge Base
- 1
Knowledge Base
Documentation
- 6
Server-Side
ClientSideEvents
Direction
FieldSet
FieldSetRow
SuperForm
ChangeLog
ASP.NET 2.0-4.0
AJAX Page
Calendar
Color Picker
Date Picker
File Upload Progress
Flyout
Grid
HTML Editor
Image Zoom
Listbox
Multilevel Listbox
Show
Spell Checker
Splitter
Super Form
Tab Strip
TreeView
Tree_DB
Window
Menu
Context Menu
Easy Menu
Slide Menu
Text Menu
Combobox
Combobox
AJAX Autosuggest
Multilevel Combobox
State Selector
Interface Controls
Button
Checkbox
Dropdown List
Multiline Textbox
Radio Button
Textbox
ASP.NET 3.5-4.0
Color Picker
File Upload
HTML Editor
Spell Checker
TreeView
ASP.NET MVC
Combobox
HTML Editor
Interface Controls
Listbox
Multilevel Combobox
Multilevel Listbox
State Selector
Download
Suite for ASP.NET
Customer log-in
Support
Knowledge base
Contact support
Install FAQ
Mailing list
Compare versions
Purchase
Purchase page
Contact Sales
License info
Terms of use
Company
Testimonials
Clients
About us
Contact us