Data Validation and Annotation in .NET MVC

Data Validation in .NET MVC

Data Validation is one of the most important parts of any application. .NET MVC provides special classes to apply validation and data annotation. In this article, we will learn how to apply Data Validation and Annotation in .NET MVC. Previous Chapter: .NET MVC with SQL Server Database What Are Data Annotations? Data annotations are a … Read more

How to Add Serial Numbers to a List of Records in MVC

MVC View Page Logic

Adding serial numbers to a list of records in an MVC application is a common requirement. It helps users to easily reference and identify records. In this article, we will walk you through how to achieve this in an ASP.NET MVC application. Before we proceed further If you want to go through with the MVC … Read more

.NET MVC with SQL Server Database

.NET MVC Tutorial

In this article, we will learn .NET MVC with SQL Server database and entity framework. Previous Chapter: Routing in MVC The .NET MVC (Model-View-Controller) framework is a popular framework for building web applications. It promotes a clean separation of concerns by dividing the application into three main components: When working with an SQL Server database … Read more

Introduction to Routing in .NET MVC

.NET MVC Tutorial

Routing is the backbone of the .NET MVC web application, determining how URLs map to controller actions. In this article, we will explore the different routing approaches available, from default routing to more advanced attribute-based routing, equipping you with the knowledge to create intuitive and flexible URL structures. Previous Chapter: Temp Data, View Bag, and … Read more

Temp Data, View Bag, and View Data in .NET MVC

.NET MVC Tutorial

In the previous article, we created the first MVC application in Visual Studio 2022. In this article, we will learn the mechanism available in ASP.NET MVC for managing and passing data between your controller and views – Temp Data, View Bag, and View Data. Understand their purpose, scope, and best practices for effective implementation. Previous … Read more

First .NET MVC Application using Visual Studio

.NET MVC Tutorial

MVC is a widely adopted software design pattern that separates an application’s data, user interface, and control logic into three interconnected components: the Model, the View, and the Controller. This architectural pattern promotes code organization, scalability, and maintainability. In our previous article, we saw the fundamentals of .NET MVC. Setting up a New MVC Project … Read more

.NET MVC Tutorial For Beginners and Professionals

.NET MVC Tutorial

This is the first article of the .NET MVC Tutorial series. We will cover every topic of .NET MVC in our MVC Tutorial series. Introduction to the Model-View-Controller (MVC) Architecture The Model-View-Controller (MVC) architecture is a widely adopted software design pattern that separates an application’s data, user interface, and control logic into three interconnected components: … Read more

Build Your First MVC Application in Visual Studio 2022

In this article, we will demonstrate How to build the first MVC application in Visual Studio 2022 using .NET 6. Also, we will see how the .NET 6-based MVC project is different from than .NET Core-based MVC project. Prerequisites Create MVC application in Visual Studio 2022 Follow the below steps to create your first MVC … Read more

Authentication and Authorization in MVC Application

In any kind of software application, Authentication and Authorization are taken very seriously. In this blog, we will see how can we apply authorization in an MVC application. By default, all Controllers and Actions in an MVC application are accessible by anonymous users. The Authorize attribute handles authorization for a logged-in user in MVC application. … Read more

Consume Web API 2 using JQuery in MVC application

In this blog, we will see how to create a Web API in Visual Studio 2017 and consume this API from MVC application using jQuery. Web API is the Microsoft open source technology for developing REST services based on HTTP protocol. ASP.Net Web API is a framework for building, consuming HTTP based service. The advantage … Read more

RSS
YouTube
YouTube
Instagram