Category - ASP.Net Validators
Results 21 - 40 of 44
14 Feb 2015 14 Feb 2015 1 Comments  72692 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Google RECaptcha version 2.0 on Client Side using JavaScript and jQuery in ASP.Net.

The Google RECaptcha version 2.0 allows to validate the Captcha response on client side using its Callback functions.

The Google RECaptcha 2.0 will be validated using ASP.Net RequiredFieldValidator.
07 Feb 2015 07 Feb 2015 3 Comments  83584 Views
Here Mudassar Ahmed Khan has explained how to validate FileUpload Control using Regular Expression and RegularExpressionValidator in ASP.Net.

The validation will perform required validation and will also validate the selected file using File extension in ASP.Net.
16 Dec 2014 16 Dec 2014 2 Comments  54791 Views
Here Mudassar Ahmed Khan has explained how to validate (check) File Size in KB, Dimensions (Height and Width) of an Image using CustomValidator in ASP.Net using C# and VB.Net.
04 Oct 2014 04 Oct 2014 0 Comments  18833 Views
Here Mudassar Ahmed Khan has explained how to validate Terms and conditions CheckBox using JavaScript and CustomValidator in ASP.Net.
31 Jul 2014 31 Jul 2014 8 Comments  54495 Views
Here Mudassar Ahmed Khan has explained how to solve the problem of RequiredFieldValidator not working when OnCientClick event is added to the Button in ASP.Net.

Thus in order to make the RequiredFieldValidator work with OnClientClick we need to make use of Page_ClientValidate JavaScript function of ASP.Net Validators to perform validation explicitly.
30 Jun 2014 30 Jun 2014 2 Comments  57702 Views
Here Mudassar Ahmed Khan has explained how to do Start Date End Date Validation compare validation such that selected Start date should be less than End date in dd/MM/yyyy format.

In order to compare the dates, I have made use of ASP.Net CompareValidator.
22 Jun 2014 22 Jun 2014 2 Comments  338863 Views
Here Mudassar Ahmed Khan has explained how to use Regular Expression (Regex) to accept/allow only Alphabets and Space in TextBox in ASP.Net using:-

1. RegularExpression Validator.
2. JavaScript.
3. jQuery.
23 May 2014 23 May 2014 0 Comments  61248 Views
Here Mudassar Ahmed Khan has explained how to dynamically change the error message of ASP.Net Custom Validator using JavaScript.

In order to illustrate the functioning with an example, I have created a simple form where a person has to enter either Phone Number or Cell Number and based on what he chooses the validation message of the ASP.Net CustomValidator is dynamically changed using JavaScript.
09 Feb 2014 09 Feb 2014 1 Comments  47744 Views
Here Mudassar Ahmed Khan how to validate CheckBoxes inside Repeater and perform at least one checked validation using JavaScript in ASP.Net.

Validation of CheckBoxes inside Repeater is performed using ASP.Net CustomValidator with a client side JavaScript validation function.
23 Oct 2013 23 Oct 2013 0 Comments  121831 Views
Here Mudassar Ahmed Khan has explained how to enable disable ASP.Net Validator (Client Side Validation) such has RequiredField validator, RegularExpression validator, Custom validator, etc. using JavaScript or jQuery.

In order to enable or disable ASP.Net Validator (Client Side Validation), we need to make use of the inbuilt ValidatorEnable ASP.Net client side JavaScript function.
11 Sep 2013 11 Sep 2013 4 Comments  104880 Views
Here Mudassar Ahmed Khan has explained how to validate ASP.Net CheckBoxList control using Custom Validator and perform at least one CheckBox Checked Validation in it. The ASP.Net Custom Validator will make use of JavaScript function to validate the CheckBoxList control.
31 Aug 2013 31 Aug 2013 2 Comments  86739 Views
Here Mudassar Ahmed Khan has explained with example how to use ASP.Net CustomValidator OnServerValidate Event and perform validation Server Side in ASP.Net using C# and VB.Net.
In this example I will validate TextBox data and make sure that the entered text is strictly numeric i.e. only numbers using ASP.Net Custom Validator and its OnServerValidate Server Side Event.
04 Jun 2013 04 Jun 2013 8 Comments  126785 Views
Here Mudassar Ahmed Khan has give some examples of combination of Regular Expressions (Regex) along with ASP.Net RegularExpression Validators, so that users can implement different sorts of Password Policy in their websites.
For example:-

- Minimum 8 characters at least 1 Alphabet and 1 Number
- Minimum 8 characters at least 1 Alphabet, 1 Number and 1 Special Character
- Minimum 8 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet and 1 Number
- Minimum 8 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet, 1 Number and 1 Special Character
- Minimum 8 and Maximum 10 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet, 1 Number and 1 Special Character
27 Mar 2013 27 Mar 2013 3 Comments  43653 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to validate only certain selected GridView Row controls like TextBox using ASP.Net Validators like Required Field Validator
27 Mar 2013 27 Mar 2013 0 Comments  44786 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to validate TextBox value inside GridView TemplateField ItemTemplate using ASP.Net Validator such as RequiredField Validator.
21 Jul 2012 21 Jul 2012 4 Comments  68231 Views
Here Mudassar Ahmed Khan has explained how we can display the validation failed error messages of ASP.Net Validator controls like RequiredFieldValidator, RegularExpressionValidator, CompareValidator, RangeValidator and CustomValidator inside the ASP.Net TextBox control using jQuery.
17 Jun 2012 17 Jun 2012 3 Comments  87355 Views
Here Mudassar Ahmed Khan has explained how to display the ASP.Net ValidationSummary control inside jQuery Modal Dialog popup box without adding any client click event and for multiple buttons by overriding the ASP.Net WebForm_OnSubmit method.
10 Jun 2012 10 Jun 2012 7 Comments  317188 Views
Here Mudassar Ahmed Khan has explained the following three types of character length or count validations for ASP.Net TextBox using Regular Expression Validators.
1. Maximum character length Validation
2. Minimum character length Validation
3. Minimum and Maximum character length Validation
14 May 2012 14 May 2012 5 Comments  129559 Views
Here Mudassar Ahmed Khan has explained how to trigger Validators belonging to Mutliple Validation Groups using a single Button control in ASP.Net.
10 Feb 2012 10 Feb 2012 3 Comments  79177 Views
Here Mudassar Ahmed Khan has explained how to do compare validation for dates in dd/mm/yyyy using the ASP.Net CompareValidator.
Results 21 - 40 of 44