Category - ASP.Net Validators
Results 1 - 20 of 44
12 Aug 2020 12 Aug 2020 0 Comments  18335 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  16260 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  6505 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  22114 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  65525 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  46109 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  27838 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  29486 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  17943 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  24488 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  32027 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  83127 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  22337 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.
26 Oct 2015 20 Jul 2020 2 Comments  46926 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate (check) Google RECaptcha version 2.0 before Form Submit 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.
24 May 2015 24 May 2015 0 Comments  22334 Views
Here Mudassar Ahmed Khan has explained how to make a TextBox required if a CheckBox is checked by enabling the RequiredFieldValidator in ASP.Net using JavaScript and jQuery.
In order to enable ASP.Net RequiredFieldValidator for the TextBox when the CheckBox is checked, the ASP.Net ValidatorEnable client side JavaScript function is used.
24 May 2015 24 May 2015 0 Comments  31340 Views
Here Mudassar Ahmed Khan has explained how to enable a RequiredFieldValidator when CheckBox is checked and disable a RequiredFieldValidator when CheckBox is unchecked in ASP.Net using JavaScript and jQuery.
In order to enable or disable ASP.Net RequiredFieldValidator, the ASP.Net ValidatorEnable client side JavaScript function is used.
10 May 2015 10 May 2015 0 Comments  33925 Views
Here Mudassar Ahmed Khan has explained how to display validation error messages of ASP.Net Validators such as RequiredFieldValidator, RegularExpressionValidator, CustomValidator, CompareValidators, etc. in JavaScript Alert Message Box.
ASP.Net has provision to display error messages of ASP.Net Validators in JavaScript Alert Message Box using ValidationSummary control.
06 May 2015 06 May 2015 0 Comments  25994 Views
Here Mudassar Ahmed Khan has explained how to display (show) AJAX Control Toolkit ModalPopupExtender Modal Popup after validation of ASP.Net validators (such as RequiredFieldValidator) is successful in ASP.Net.
04 May 2015 04 May 2015 1 Comments  41878 Views
Here Mudassar Ahmed Khan has explained how to enable disable ASP.Net RequiredFieldValidator, using JavaScript and jQuery.

In order to enable or disable ASP.Net RequiredFieldValidator, we need to make use of the inbuilt ValidatorEnable ASP.Net client side JavaScript function.
12 Mar 2015 12 Mar 2015 1 Comments  28293 Views
Here Mudassar Ahmed Khan has explained how to perform required validation for automatically generated TextBoxes for BoundField columns in Edit mode of GridView in ASP.Net using C# and VB.Net.
By default when GridView Row is edited, the BoundField columns get converted to TextBoxes but there is no provision to validate these TextBoxes.
Results 1 - 20 of 44