Category - Regular Expressions
Results 1 - 5 of 20
Here Mudassar Ahmed Khan has explained with an example, how to create HTML Fileupload element (<input type = “file” />) using Html Helper and Model in ASP.Net MVC Razor.

By default, there is no Html Helper method for creating HTML Fileupload element (<input type = “file” />) in ASP.Net MVC Razor and hence Html.TextBoxFor function is used and the type Attribute is set to value File.
Here Mudassar Ahmed Khan has explained with an example, how to perform Client Side validation of HTML Fileupload element (<input type = “file” />) using Data Annotations in Model class and jQuery in ASP.Net MVC Razor.

HTML Fileupload element validation will allow upload of only certain files by filtering them using their extensions. This filtering of files will be done using the RegularExpression Data Annotation attribute in Model class.
Here Mudassar Ahmed Khan has explained with an example, how to use the RegularExpression Data Annotation in ASP.Net MVC Razor.
The RegularExpression Data Annotation can be applied to Model Properties and used for enforcing Regular Expression (Regex) validations in ASP.Net MVC Razor.
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.
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.
Results 1 - 5 of 20