Category - Data Annotation
Results 11 - 15 of 23
08 Dec 2016 08 Dec 2016 0 Comments  14984 Views
Here Mudassar Ahmed Khan has explained with an example, how to add (apply) CSS Class (Styles) in Html.ValidationMessageFor Helper method in ASP.Net MVC Razor.
The Html.ValidationMessageFor Helper method has a parameter named htmlAttributes which is used for adding (applying) CSS Class (Styles) to the displayed validation message.
02 Dec 2016 02 Dec 2016 0 Comments  41376 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Mobile Number (Cellphone Number) TextBox validation i.e. exact Ten Numbers (Digits) validations using Data Annotations and RegularExpressions (Regex) on Client Side in ASP.Net MVC Razor.
A Mobile Phone Number (Cellphone Number) is a numeric value with exact ten (10) digits and such validation can be achieved using the RegularExpression Data Annotation attribute in ASP.Net MVC Razor.
02 Dec 2016 02 Dec 2016 0 Comments  42118 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Decimal TextBox Validation i.e. Decimal Number with maximum up to two decimal places validation using Data Annotations on Client Side in ASP.Net MVC Razor.
The Client Side Decimal TextBox Validation i.e. Decimal Number with maximum up to two decimal places validation will be performed using Model class and RegularExpression Data Annotation attribute in ASP.Net MVC Razor.
26 Nov 2016 26 Nov 2016 0 Comments  9754 Views
Here Mudassar Ahmed Khan has explained with an example, how to compare (match) values of Model Properties using Data Annotations in ASP.Net MVC Razor.
22 Nov 2016 22 Nov 2016 0 Comments  23276 Views
Here Mudassar Ahmed Khan has explained with an example, how to create Password TextBox using Html.TextBoxFor in ASP.Net MVC Razor.
Html.TextBoxFor cannot create Password TextBox and hence Html.PasswordFor Helper function needs to be used.
This article will also explain how to perform Client Side validation for Password TextBox using Model class and Data Annotation attributes in ASP.Net MVC Razor.
Results 11 - 15 of 23