Click here to Skip to main content

Validation

Great Reads

by Jani Giannoudis
Enhanced web page validation based on multiple rules at client and server side.
by Colin Angus Mackay
Xander.PasswordValidator is an assembly (or two) that assists in validatating passwords in .NET applications.
by Rawat Sandeep
Building a Rule Based Validation framework in C# and XML
by Rui Inacio
A KnockoutJS plug-in for model and property validation that is named Knockout validation.

Latest Articles

by Gerd Wagner
What are the most important types of integrity constraints to be checked in any data management app?
by ashish_5437
Implement validations in knockout js
by Jitendra_Shri
Single Server side validator for multiple controls
by After2050
In this article we will see how to apply basic validations to a model and also we will see how to create custom validations by implementing the ValidationAttribute class or IValidatableObject interface.

Discussions

by Jeremy Forsythe on tip/trick "Telephone Validation Method"
by Nuno Reis on Validate user input in Windows Forms
by Kenneth Haugland on tip/trick "Validations in knockout js"
by ashish_5437 on tip/trick "Validations in knockout js"
by Kenneth Haugland on tip/trick "Validations in knockout js"

All Articles

Sort by Score

General 

19 Aug 2011  
Craig Jewiss
Force validation, even if the user doesn't enter anything, so that fields that are required show an appropriate message.
19 Apr 2012  
Jani Giannoudis
Enhanced web page validation based on multiple rules at client and server side.
13 Jun 2012  
Rawat Sandeep
Building a Rule Based Validation framework in C# and XML
24 Apr 2013  
Colin Angus Mackay
Xander.PasswordValidator is an assembly (or two) that assists in validatating passwords in .NET applications.
23 Jun 2014  
Gerd Wagner
What are the most important types of integrity constraints to be checked in any data management app?
25 Mar 2013  
Shai Raiten
How to add reCAPTCHA and email confirmation to your ASP.NET MVC site.
10 Nov 2006  
Craig G. Wilson
Provides a basic/advanced object level framework for validation.
7 Apr 2006  
Adam Tibi
Discussing the MultipleFieldsValidator that validates a group of fields in which at least one is required, like phone number, mobile phone number, or email. It inherits the BaseValidator and uses some new cool ASP.NET 2.0 features.
31 Mar 2003  
Paul Riley
Demistifying the mysterious ASP.NET validator controls, allowing fast and painless validation of Web Forms.
1 May 2013  
Ricardo Lynch
Using JavaScript for oAuth with three major identity providers: Facebook, Google, and Twitter.
29 Feb 2004  
Paul Ingles
Article discussing new version of ASP.NET Credit Card Validator, including both server and client-side checks and VS.NET designer support.
13 Aug 2009  
Farooq Kaiser
In this article, I will explore an alternative method of implementing validation logic. I will show you how to perform validation by using the IErrorDataInfo interface.
30 Aug 2011  
Misha1964
Learn how to validate complex web forms using a business rules engine
24 Jan 2005  
Mauricio Ritter
Override the default implementention of client side validation of ASP.NET and modify the default functionality by adding focus to error fields and individual alerts for each invalid field
13 Jul 2006  
Alexander Kleshchevnikov
How flexible is the normal functionality of ASP.NET validators? In this article, I am going to show how to customize the appearance of the attached control of a validator during an error situation on the server or the client side, or even call a custom client function without postback.
15 Dec 2006  
Manish Pansiniya
This textbox contains everything for validation. You can set validation options by a click of the mouse and just a few keystrokes.
28 Jul 2010  
Gil Fink
The article describes an implementation of an ASP.NET validator that uses the new System.ComponentModel.DataAnnotations assembly that came in .NET 3.5 SP1.
21 Aug 2008  
Sowkot Osman
Common validation and length validation with Regular Expressions in ASP.NET.
18 Sep 2002  
Jamie Nordmeyer
A single control to validate a .NET Web Form.
4 Jan 2003  
Paul Ingles
An ASP.NET Validator Control implemented in Managed C++ that can be used to verify email addresses by connecting to SMTP servers listed as Mail eXchangers for a domain, includes example of Win32 API Interoperability with C++ .NET. The validation is not RegEx based.
13 May 2006  
M. Shehabeddeen
This article shows how to defeat the obstacles imposed by the ASP.NET validation system. Client-side control of validation is the main interest of this article, and the solution's core is JavaScript code.
4 Mar 2005  
Peter Morris
An article describing how to add errors to the validation summary at runtime
10 Feb 2004  
vikramk
This article extends self validating Text Box control to other data types and Min and Max value checking.
21 Sep 2006  
g00fyman
An ASP.NET custom TextBox control with a built-in RequiredFieldValidator, providing a similar look and feel to the Windows Forms ErrorProvider.
13 Aug 2002  
Wim Hollebrandse
In this article we will have a look at implementing a custom web control. This web control will inherit from the TextBox web control, and will automatically add a required field validator at run-time.
1 Apr 2005  
DanielHac
Example of how to require that the user enters at least one of multiple textboxes.
23 Jan 2004  
Matt Berther
An article describing how to implement a custom ASP.NET validator.
1 Jun 2012  
Satish Tate
Workaround on using AllowMultiple=true for custom data annotations on both server side and client side.
11 Jun 2002  
Scott Juranek
The ValidationSummary Control can be easily subclassed to make data driven web applications more code-friendly.
24 Jul 2007  
Murray Roke
Validates a ListControl to ensure at least one RadioButton or CheckBox is checked.
23 Dec 2009  
Jonas Wranå
How to validate fields in XAML simple and easily
10 Dec 2010  
GG123
How to work with multiple ValidationGroups simultaneously on client-side.
17 Jan 2005  
Mr. Tommy Li
An article demonstrating creation of a custom ASP.NET validation summary control with highlighting of invalid form fields intelligently.
18 Feb 2010  
Somnath Mondal
The benefit of putting validation in the model layer is that, the validation rules will be enforced everywhere in the application that accesses the database. It also means that we can change the validation rule in one place and every UI element inside our app will automatically get updated.
15 Jun 2006  
Cheml0ck
Extendable Javascript validation routines.
7 Oct 2009  
Sean Rhone
Using .NET 3.5 DataAnnotations for ASP.NET input validation.
9 Feb 2004  
Anatoly Rapoport
CustomValidator which uses XMLHTTpRequest to make validation.
6 Feb 2005  
tupacs01
This article describes the implementation of an ASP.NET Web Service which can be used for SSN format validation.
28 Nov 2007  
Jan Huffman
Use both client-side and server-side validation across multiple checkboxes
23 Oct 2004  
jeffshantz
Replace the ugly ValidationSummary control text with your own, customizable popup summary window.
5 Mar 2014  
Shivprasad koirala
Implementing client-side validation using Validation Application Blocks.
19 Mar 2013  
Vasudevan Deepak Kumar
In this article, we would discuss a very brief and overall technique to verify the email addresses of the users that signup for a web account.
12 Oct 2004  
Gaurang Desai
RequiredField and Regular Expression validation together... you can use this control in place of group required field and regular expression validation controls.
24 Nov 2005  
Tamer Safwat Aziz
This article will teach you how to create your own ASP.NET buttons and image buttons that enable only a set of validators that are attached to these controls on your ASP.NET page.
24 Mar 2002  
Cenk Civici
RequiredField Validator for ASP.NET ListControl derived webserver controls
12 Sep 2006  
Muhammad Abubakar Dar
A logical portion of an ASP.NET page can be validated independently by overriding the behavoiur of validator controls. I am going to validate different parts of the page independently so our control or a particular portion of the page will validate itself without affecting anything else on the page.
25 Feb 2007  
Three Nine Consulting
Explanation of how to call ASP.NET validation controls by using JavaScript.
12 May 2005  
bkalicharan
Validation controls will not set the focus to the appropriate control when the validation fails. This can be achieved using a custom validation file.
27 Sep 2007  
Seun
A small program you can use to validate an XML document against a schema
11 Aug 2004  
vivekthangaswamy
Validator controls in ASP.NET.
15 Mar 2005  
E KuralMani
This article gives you a solution for generating a client side validation script in a component model that you can reuse in an ASP.NET project.
12 May 2004  
A Berglas
This article demonstrates serious bugs and security vulnerabilities that can be easily introduced by using the ASP.NET OnChange event for validation.
6 Dec 2009  
AbelCantu
A JavaScript client-side validation helper.
6 Jun 2012  
abhinav_soni
Very simple XML based framework for client and server side validation frameworks in Java.
Sort by Score

C# Controls - Validation Controls 

26 Apr 2006  
Jim Cai
You needn't write any code for control validation; just set a control's validation information at design-time and reduce maintenance workload.
16 Dec 2011  
Praveen Meghwal
This article explains how to create custom validation attribute in MVC 3 for validating data on server side as well as on client side.
16 Apr 2005  
Noogen
Code-free validation for TextBox, ComboBox, and more...
3 Apr 2010  
Pranay Rana
An extended control which doesn't require attaching a validation control, but just needs specifying the input type.
12 Jan 2005  
Datac0re
Have you ever had a field that was required, but only if another field was a certain value? Then, this validator is for you!
26 Jul 2008  
Artiom Chilaru
The article explains how to easily run server-side validation methods on the client-side
30 Oct 2007  
Balamurugan R A
Performing validation of checkbox using custom validator
12 Aug 2009  
Mahdi Yousefi
Create an ASP.NET captcha that can be used in Web Forms or with AJAX using s3capcha.
21 Jun 2005  
Paul Brower
Use the ErrorProvider to display friendly 'Value Required' warnings.
9 Oct 2007  
Lukas Holota
An ASP.NET control that allows users to enter only numbers.
22 Mar 2005  
Rooc
Override the WebUIValidation.js function to fire the custom or regular expression validator even when the field is empty.
28 Apr 2008  
Enoch Tsai
Discussing the creation of custom Phone TextBox and its built-in PhoneValidator that validates a group of textboxes which represents three sections of a phone number. It inherits the BaseValidator and uses some new cool ASP.NET AJAX 3.5 features.
25 Jul 2005  
franksbootdisk
A TextBox class with an extensible validator interface.
4 Oct 2004  
Gaurang Desai
Common validation conrol for more than one Required Field on the page. The simple and most eligant way to validate required fields.
26 Mar 2005  
Chayan
Dynamic control validation (TextBox, ComboBox) at runtime using a container control.
26 Mar 2008  
jcoehoorn
Use this validator control to require that at least one control in a list has a value.

Advertise | Privacy | Mobile
Web04 | 2.8.140705.1 | Last Updated 8 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid