Caching in ASP.Net MVC

In this blog, we will see how to implement caching in MVC?Before writing MVC code for caching, you should be very much clear about “What is Caching?” What is Caching? Cache means to store it in a temp memory for future use. Caching is often used to store information that’s frequently served to users in … Read more

How to use multiple layout pages in MVC application?

In this blog, we will see how to use multiple Layout pages in an MVC application.Layout pages are used to share common designs across all view pages. For eg, header and footer are generally common across the application. In this case, the Layout page is useful. What is a Layout page in MVC? A layout … Read more

Exception Handling in MVC

In this blog, we will see Exception handling in MVC. There are more than one ways to handle an exception in ASP.Net MVC. Let’s see in details below – How to Handle Exception in ASP.Net MVC? As already mentioned above that, we can handle an exception in ASP.Net MVC in multiple ways. We will see … Read more

Areas in ASP.Net MVC

In the previous blog, I wrote about Filters in MVC. In this blog, we will see What is Area in ASP.Net MVC? What is Area in MVC? The Area in MVC is basically a part of the project. It means an application could have the different section such as Admin, Users or Customers, Moderator, Editor, … Read more

Understanding ASP.Net MVC Filters

In this blog we will see about MVC filters. So what are filters in MVC and where can we use them in our application. So let’s start and know about the MVC filters. Suppose you have to execute some code before and after an action method in an MVC application. So how to overcome this … Read more

HTML helpers in MVC

HTML Helper methods are predefined methods in ASP.Net MVC to work with HTML forms.HTML helper methods generate specific HTML tags on browser. In this blog, we will see HTML Helpers in details. For eg – HTML helper @Html.TextBoxFor(model=>model.ProductName) output is <input type=”text” name=”ProductName”> Note – ProductName is a property in our Model. Similarly for TextBoxArea, … Read more

What’s new in ASP.Net Core MVC?

In this blog, we will see What’s new in ASP.Net Core MVC?. This is my very first blog on ASP.Net Core MVC. After MVC version 5, ASP.Net Core MVC 1.0 and ASP.Net Core MVC 2.0 has been launched in year 2016 and 2017 respectively. Features of ASP.Net Core MVC? 1. Platform independent The very first … Read more

ViewBag vs ViewData vs TempData

In this article, we will learn about the differences between ViewBag vs ViewData vs TempData. In ASP.NET MVC, ViewBag, View Data and TempData are used for passing information from the controller to view and in the next request. ViewBag and ViewData are practically comparable and it assists us with moving the information from the controller … Read more

Anti-forgery tokens in MVC

In this blog, we will see Anti-forgery tokens in MVC. This is a built-in functionality in MVC given by Microsoft. This is a security aspect in ASP.NET MVC.Previous Blog – Data Annotation in ASP.Net MVC Secure MVC form using Anti-Forgery Token Anti-forgery token is used to secure the application against Cross-Site Request Forgery (CSRF). What … Read more

MVC data annotation for Model Validation

In this blog, we will see how data annotation work in MVC. We will also see how we can implement form validation using Data Annotation for Model. Data Annotation Form validation is always the primary task for a developer, either you can do this by using Client Side or Server Side. Data Annotation is doing … Read more