ASPSnippets.com
Category - Data Annotation
Results 1 - 5 of 18
15 Jun 2018 15 Jun 2018 0 Comments  221 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 MVC Razor.

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 MVC Razor.
15 Jun 2018 15 Jun 2018 0 Comments  171 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement dd/MM/yyyy Date format validation for TextBox in ASP.Net MVC Razor.

The RegularExpression Data Annotation will be used along with Regular Expression (Regex) for enforcing dd/MM/yyyy Date format validation for TextBox in ASP.Net MVC Razor.
10 Aug 2017 10 Aug 2017 0 Comments  3786 Views
Here Mudassar Ahmed Khan has explained with an example, how to make the Client Side validation implemented using Data Annotations in ASP.Net MVC Razor.

The Client Side validations will be performed using jQuery, Model class and Data Annotation attributes and it needs configuration of Bundles in order to enable Client Side validations.
01 Aug 2017 01 Aug 2017 0 Comments  3135 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Data Annotations attribute for Model validations in ASP.Net MVC Razor.

The Client Side validations will be performed using Model class, Data Annotation attributes and jQuery in ASP.Net MVC Razor.
09 Dec 2016 09 Dec 2016 0 Comments  9165 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass and show Exception (Error) message from Controller to View in ASP.Net MVC Razor.
The Exception (Error) message will be displayed from Controller to View using Html.ValidationSummary Html Helper function in ASP.Net MVC Razor.
Results 1 - 5 of 18