Category - ASP.Net Validators
Results 1 - 20 of 51
07 Nov 2022 07 Nov 2022 0 Comments  456 Views
Here Mudassar Khan has explained with an example, how to implement US Mobile Number validation using RegularExpressionValidator in ASP.Net.

The Mobile Number entered in the TextBox will be validated using Regular Expression (Regex) and ASP.Net RegularExpressionValidator.
14 Oct 2022 14 Oct 2022 0 Comments  531 Views
Here Mudassar Khan has explained with an example, how to implement Indian Mobile Number validation using RegularExpressionValidator in ASP.Net.

The Indian Mobile Number entered in the TextBox will be validated using Regular Expression (Regex) and ASP.Net RegularExpressionValidator.
10 Oct 2022 10 Oct 2022 0 Comments  570 Views
Here Mudassar Khan has explained with an example, how to implement GST Number validation using RegularExpressionValidator in ASP.Net.

The GST Number entered in the TextBox will be validated using Regular Expression (Regex) and ASP.Net RegularExpressionValidator.
03 Oct 2022 03 Oct 2022 0 Comments  706 Views
Here Mudassar Khan has explained with an example, how to implement Indian Passport Number validation using RegularExpressionValidator in ASP.Net.

The Passport Number entered in the TextBox will be validated using Regular Expression (Regex) and ASP.Net RegularExpressionValidator.
22 Sep 2022 22 Sep 2022 0 Comments  599 Views
Here Mudassar Khan has explained with an example, how to implement Aadhaar Number validation using RegularExpressionValidator in ASP.Net.

The Aadhaar Number entered in the TextBox will be validated using Regular Expression (Regex) and ASP.Net RegularExpressionValidator.
29 Aug 2022 29 Aug 2022 0 Comments  1070 Views
Here Mudassar Khan has explained with an example, how to use CompareValidator in ASP.Net.
27 Aug 2022 27 Aug 2022 0 Comments  1537 Views
Here Mudassar Khan has explained with an example, how to perform Password and Confirm Password validation for Password TextBox in ASP.Net.

The values of the Password and Confirm Password TextBoxes are compared using ASP.Net CompareValidator and if the values do not match error message is displayed.
12 Aug 2020 12 Aug 2020 0 Comments  23048 Views
Here Mudassar Ahmed Khan has explained with an example, how to use RequiredFieldValidator for DropDownList in ASP.Net.
RequiredFieldValidator is used to validate required inputs, for TextBoxes it is plug and play but for DropDownList an additional property InitialValue needs to be set in ASP.Net.
In the InitialValue property, the value of the Default DropDownList Item needs to be set.
19 Dec 2019 19 Dec 2019 0 Comments  19524 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Page_ClientValidate function with JavaScript in ASP.Net.

Page_ClientValidate is an ASP.Net JavaScript function in-built which is used to perform ASP.Net validation explicitly i.e. invoking the ASP.Net Validators using JavaScript.

For example, in order to make the RequiredFieldValidator work with OnClientClick we need to make use of Page_ClientValidate JavaScript function in ASP.Net.
14 Nov 2019 14 Nov 2019 0 Comments  7391 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Indian PAN Card Number validation using RegularExpressionValidator in ASP.Net.

The PAN Card Number entered in the TextBox will be validated on Button click using Regular Expression (Regex) and RegularExpressionValidator in ASP.Net.
04 Oct 2019 04 Oct 2019 0 Comments  24175 Views
Here Mudassar Ahmed Khan has explained with an example, how to check for duplicate values while inserting in GridView without SQL in ASP.Net using C# and VB.Net.

When the Add Button is clicked, the values of TextBoxes will be compared with the Row values of the GridView using ASP.Net CustomValidator and JavaScript and if the values are duplicate, error messages will be displayed.
01 Aug 2018 01 Aug 2018 0 Comments  71956 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Email Address using Regular Expression Validator in ASP.Net.
14 Jun 2018 14 Jun 2018 1 Comments  48687 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert Date in dd/MM/yyyy format in SQL Server Database Table using ASP.Net with C# and VB.Net.

This article will illustrate how to insert Date in dd/MM/yyyy format in Database Table using Stored Procedures and the SQL Server DATEFORMAT command in ASP.Net.
11 Jun 2018 11 Jun 2018 0 Comments  30504 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Date of Birth (DOB) i.e. the Age entered in TextBox is minimum 18 years in ASP.Net using Regular Expression and Custom Validator.
23 Mar 2018 23 Mar 2018 1 Comments  32122 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Required validation for RadioButtonList control using RequiredFieldValidator in ASP.Net.
09 Jan 2018 09 Jan 2018 0 Comments  19221 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to accept/allow Alphanumeric characters i.e. Alphabets (Upper and Lower case) and Numbers (Digits) and Space in TextBox in ASP.Net using:-

1. RegularExpression Validator.
2. JavaScript.
3. jQuery.
03 Jan 2018 03 Jan 2018 0 Comments  27030 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression validator for Alphanumeric validation i.e. Alphabets (Upper and Lower case) and Numbers (Digits) in TextBox in ASP.Net.
03 Jan 2018 03 Jan 2018 1 Comments  35421 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to accept/allow only Alphanumeric characters i.e. Alphabets (Upper and Lower case) and Numbers (Digits) in TextBox in ASP.Net using:-

1. RegularExpression Validator.
2. JavaScript.
3. jQuery.
22 Nov 2016 20 Jul 2020 6 Comments  87817 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement 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.
03 Jul 2016 03 Jul 2016 1 Comments  23721 Views
Here Mudassar Ahmed Khan has explained with an example, how to scroll to the first error or to the first Validator that has raised the error when validation fails in ASP.Net using JavaScript.
In a long form it becomes difficult for users to find out which validation has failed and hence this feature enhances the user experience by scrolling the page and setting focus to the control where the validation is failed.
Results 1 - 20 of 51