Category - Validation
Results 81 - 100 of 116
25 Aug 2020 25 Aug 2020 0 Comments  10630 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ModelState in View for accessing the ModelState.IsValid property in ASP.Net MVC Razor.

The ModelState can be accessed in View using the ViewData object in ASP.Net MVC Razor
25 Aug 2020 04 Aug 2022 0 Comments  5832 Views
Here Mudassar Khan has explained with an example, how to implement Server Side TextBox Validation using Model in ASP.Net MVC Razor.

The Server Side validations will be performed using Model class and Data Annotation attributes in ASP.Net MVC Razor.
25 Aug 2020 04 Aug 2022 0 Comments  3283 Views
Here Mudassar Khan has explained with an example, how to perform Validation inside Controller i.e. Server Side validation in ASP.Net MVC Razor.

Validations in ASP.Net MVC Razor can be performed on Client Side as well as Server Side using Data Annotation attributes.
21 Aug 2020 14 Sep 2022 0 Comments  7014 Views
Here Mudassar Khan has explained with an example, how to implement TextBox Validation using Model in ASP.Net MVC Razor.

The Client Side validations will be performed using Model class and Data Annotation attributes in ASP.Net MVC Razor.
21 Aug 2020 21 Aug 2020 0 Comments  8832 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Client Side TextBox validations without using Model in ASP.Net MVC Razor.
The Client Side validations will be performed using jQuery obtrusive validation library in ASP.Net MVC Razor.
17 Aug 2020 14 Sep 2022 0 Comments  1875 Views
Here Mudassar Khan has explained with an example, how to implement Validations in ASP.Net MVC Razor.

The Client Side validations will be performed using Model class and Data Annotation attributes in ASP.Net MVC Razor.
17 Aug 2020 14 Sep 2022 0 Comments  20041 Views
Here Mudassar Khan has explained with an example, how to implement Required Field Validator (Validation) in ASP.Net MVC Razor.

The Client Side Required Field Validator (Validation) will be implemented using Model class and Data Annotation attributes in ASP.Net MVC Razor.
12 Aug 2020 12 Aug 2020 0 Comments  20310 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 Apr 2020 19 Apr 2020 0 Comments  28215 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Date of Birth (Age) validation with jQuery DatePicker (Calendar) plugin.

When a Date is selected in jQuery DatePicker (Calendar), the onSelect event is raised and inside the onSelect event handler the validation for Date of Birth (Age) is performed.

This article will perform minimum 18 years of Age validation and the Age will be calculated using the Date selected in the jQuery DatePicker (Calendar).
10 Apr 2020 10 Apr 2020 0 Comments  9772 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Age range validation (Number range validation) in AngularJS.

The Age range i.e. 18 to 60 years will be validated using AngularJS Form Validation for TextBox and ng-pattern directive in AngularJS.
19 Dec 2019 19 Dec 2019 0 Comments  17798 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.
20 Nov 2019 20 Nov 2019 1 Comments  9636 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Indian PAN Card Number validation in Windows Forms (WinForms) Application using C# and VB.Net.

When the Submit Button is clicked, the PAN Card Number in TextBox will be validated using Regular Expression (Regex) using C# and VB.Net.
19 Nov 2019 19 Nov 2019 0 Comments  8634 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Indian PAN Card Number validation using Data Annotations and Regular Expressions on Client Side in ASP.Net MVC Razor.

The Client Side PAN Card Number TextBox validation will be performed using Model class and Data Annotation attributes in ASP.Net MVC Razor.
29 Oct 2019 29 Oct 2019 0 Comments  17667 Views
Here Mudassar Ahmed Khan has explained with an example, how to use multiple Regular Expression (Regex) Data Annotation attributes for validation in ASP.Net MVC Razor.

The validation will be performed on Client Side using Model class and multiple Regular Expression (Regex) Data Annotation attributes in ASP.Net MVC Razor.
08 Jul 2019 08 Jul 2019 0 Comments  22709 Views
Here Mudassar Ahmed Khan has explained with an example, how to disable Submit Button when INPUT Text Field (TextBox) is empty in AngularJS.

When using AngularJS Form validation, the $invalid property can be used to disable the Submit Button when Form is not filled (empty) i.e. the INPUT Text Fields (TextBoxes) have invalid data.
08 Jul 2019 08 Jul 2019 1 Comments  14176 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Form validation in AngularJS.

This article will illustrate how to perform Form Validation for TextBox INPUTS for validating Name, Email Address and Age, etc. on click of Submit Button in AngularJS.
13 Dec 2018 13 Dec 2018 0 Comments  11654 Views
Here Mudassar Ahmed Khan has explained a simple tutorial with an example, how to use the ng-pattern-restrict directive in AngularJS.

The ng-pattern-restrict directive is used to restrict the user input by disabling the invalid characters with the help of Regular Expression patterns in AngularJS.
13 Dec 2018 13 Dec 2018 1 Comments  21985 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Numeric validation i.e. allow only Numbers (Digits) in TextBox using Regular Expressions in AngularJS.

The Numeric validation will be performed with the help of ngPatternRestrict module which uses Regular Expressions for restricting characters in TextBox in AngularJS.
12 Dec 2018 12 Dec 2018 0 Comments  22918 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform AlphaNumeric validation i.e. allow only Alphabets and Numbers in TextBox using Regular Expressions in AngularJS.

The AlphaNumeric validation will be performed with the help of ngPatternRestrict module which uses Regular Expressions for restricting characters in TextBox in AngularJS.
16 Aug 2018 16 Aug 2018 0 Comments  28171 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Validation Summary in ASP.Net MVC Razor.

The Validation Summary will display error messages using the Html.ValidationSummary Html Helper function in ASP.Net MVC Razor.
Results 81 - 100 of 116