Building Your First MVC Application in Visual Studio 2022 A Step-by-Step Guide

In this article, we will create the first MVC application using .NET 6 and Visual Studio 2022. Also, we will see how .NET 6-based MVC project is different from than .NET Core-based MVC project. Prerequisites Create MVC application in .NET 6 Follow the below steps to create your first MVC application in Visual Studio 2022. … 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

LINQ with an MVC Project

This blog contains basic information about LINQ. Also, we will see how can we use LINQ in an MVC project. What is LINQ? LINQ stands for Language Integrated Query. LINQ can be used to query from a variety of data sources for eg  SQL Server, Array, and XML. LINQ defines keywords that you can use … Read more

Tag Helpers in ASP.Net Core MVC

Tag Helpers is new feature introduced in ASP.Net Core MVC. Tag Helpers do the same thing as HTML Helpers does in previous versions of MVC but with a variety of changes. What are Tag Helpers? Tag Helpers helps server side code to create and render HTML tags in Razor View engine. Tag Helpers provide an … Read more

ActionName and NonAction Attribute in ASP.Net MVC

ActionName and NonAction attribute in MVC is the attribute applied to an action method. These attribute helps route engine to execute correct Action method and the respective View. ActionName Attribute ActionName attribute actually provide a alias to the action method, i.e. You can give a different name to your Action method than what is given … Read more