How to add constraints in MVC Route

In my earlier blogs, I wrote about Routing in MVC and ActionResult in MVC In this blog, I will write about – How to add constraints in MVC routing? For those who are new to MVC or MVC routing, please read my earlier blogs on MVC. What is Routing in MVC? Routing is the way … Read more

ActionResult in MVC

Controllers executes all incoming requests using Action method. An ActionMethod may return different type of result. In this blog, we will see about ActionResult of an ActionMethod in details. What is ActionResult? ActionResult is the base class for all action results in MVC. Whenever you create a controller class, a default action is created like … Read more

Differences between RenderBody and RenderSection in ASP.NET MVC

In my earlier blog, I wrote about _ViewStart.cshtml file and MVC Routing. In this blog, I will write about RenderBody vs RenderSection in MVC. @RenderBody() vs @RenderSection() RenderBody() – RenderBody() must be available in Layout view i.e. it is mandatory for Layout view RenderBody() does not take any parameter. A @RenderBody() in Layout page look like … Read more

What is ViewStart.cshtml in MVC?

Hi All, if you are new to MVC, read my earlier blogs on MVC. In my previous blog, I wrote about MVC routing. In this article, we will see the What is _ViewStart.cshtml file? What is ViewStart.cshtml file? _ViewStart.cshtml file is used to define the common layout page for all the views you add to your project. If you … Read more

MVC Routing in Details

Hi All, This is my another blog on MVC.In this blog, I have explained Routing in MVC. Here I will show how to create a route for different kinds of URL. What is Routing in ASP.Net MVC? MVC stands for Model, View, and Controller. But there is one hidden element of MVC which is Route. … Read more

How to bind drop-down list in ASP.Net MVC using Model?

In the previous blog, we have seen ‘How to bind drop-down list in ASP.Net MVC‘In this blog, let’s see how to bind the dropdown list in MVC using Model.There are numerous ways to populate dropdown list control. Here We will see How can we populate the dropdown in MVC using the model. After reading this … Read more

How to bind drop-down list in ASP.Net MVC?

In the previous blog, we have seen ‘How to bind static values with Dropdown in MVC?‘I have collected MVC tutorial topics, please have a look. In this blog, let’s see how to bind dropdown lists in MVC. Bind dropdown list in MVC using ViewBag First, write a function in your controller.Below is the function you … Read more

How to bind the Dropdown list with hard code values in MVC?

In my previous blogs, we explored about MVC. You may please refer to the article.In this blog, we will see how to bind a dropdown list with hard code values in MVC. Bind Static values with a Dropdown list in MVC Below is the code to bind @Html.DropDownList in MVC with static values. Keep your eyes … Read more

MVC Architecture

In this blog, we will try to understand the MVC Architecture with the help of a diagram. MVC Architecture MVC consists of 3 main words: Model View Controller Apart from above mentioned elements one another important element is there in MVC, called Routing. To know more about Routing in MVC Click here. MVC architecture works … Read more

MVC Version

MVC was first introduced in .Net 3.5 framework.MVC 1.0 was available in year 2009 with following features:Routing, HTML Helpers, Auto Binding. Since then multiple versions were introduced with various .Net framework. Versions of MVC After MVC 1.0, 2.0, 3.0, 4.0, MVC 5.0 (MVC 5.2.2 and MVC 5.2.3) Now Microsoft has introduced core versions of MVC … Read more

RSS
YouTube
YouTube
Instagram