Category - Validation
Results 1 - 20 of 32
02 Jul 2022 02 Jul 2022 0 Comments  238 Views
Here Mudassar Khan has explained with an example, how to implement Client Side validation before submit in ASP.Net MVC.
02 Jul 2022 02 Jul 2022 0 Comments  190 Views
Here Mudassar Khan has explained with an example, how to enable Data Annotation validation on Client Side in ASP.Net MVC.
02 Jul 2022 02 Jul 2022 0 Comments  143 Views
Here Mudassar Khan has explained with an example, how to implement Server Side validation using Data Annotations in ASP.Net MVC.
02 Jul 2022 02 Jul 2022 0 Comments  196 Views
Here Mudassar Khan has explained with an example, how to perform Client Side validations using Data Annotation attribute in ASP.Net Core MVC.

The Client Side validations will be performed using Model class and Data Annotation attributes.
17 Mar 2022 17 Mar 2022 0 Comments  2229 Views
Here Mudassar Khan has explained with an example, how to build a Registration Form using Bootstrap in ASP.Net.

The Registration Form will contain the fields along with validations implemented using HTML5 and Bootstrap in ASP.Net.
25 Aug 2020 25 Aug 2020 0 Comments  37986 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ModelState.IsValid property in ASP.Net MVC Razor.

ModelState.IsValid property is an inbuilt property of ASP.Net MVC which verifies two things:
1. Whether the Form values are bound to the Model.
2. All the validations specified inside Model class using Data annotations have been passed.

ModelState.IsValid property can be used to perform some logical operations based on the values submitted by the User.
25 Aug 2020 25 Aug 2020 0 Comments  9098 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 25 Aug 2020 0 Comments  5086 Views
Here Mudassar Ahmed 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 25 Aug 2020 0 Comments  2670 Views
Here Mudassar Ahmed 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 21 Aug 2020 0 Comments  5013 Views
Here Mudassar Ahmed 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  7647 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 17 Aug 2020 0 Comments  1513 Views
Here Mudassar Ahmed 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 17 Aug 2020 0 Comments  16506 Views
Here Mudassar Ahmed 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  16533 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  25324 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  8398 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  15237 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 0 Comments  8720 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  7756 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  15854 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.
Results 1 - 20 of 32