Posts

Showing posts from June, 2018

How to use multiple layout pages in MVC application?

Image
In this blog, we will see how to use multiple Layout page in MVC application.

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 -

Areas in ASP.Net MVC

Image
In the previosu blog, I wrote about Filters in MVC.
In this blog, we will see What is Area in ASP.Net MVC?

Understanding ASP.Net MVC Filters

Image
In ASP.Net MVC, a filter executes before or after executing an action method.
Basically, Filter in MVC is a custom class where we can write some of our own logic which will execute before or after action method.

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.

What's new in ASP.Net Core MVC?

Image
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.

ViewData vs ViewBag vs TempData

Image
ViewData, ViewBag and TempData in ASP.Net MVC. Let's see the differences among these using code implementation.

Anti-forgery tokens in MVC

Image
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

MVC data annotation for Model Validation

Image
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.

Microsoft acquires GitHub - World's largest source code platform

Today, we announced an agreement to acquire GitHub, the world’s leading software development platform. I want to share what this acquisition will mean for our industry and for developers.

What is ViewModel? Use more than one model in View using View Model.

In the previous blog, I wrote about How to Pass data to View?
In this blog, we will see What is ViewModel and How to use it?

How to pass data from Controller to Views

In this blog, we will see how Controller interacts with View in ASP.Net MVC. In another way, we can say - How to pass data from Controller to View?

Error- This configuration section cannot be used at this path.This happens when the section is locked at a parent level.

Image
Recently I installed Windows 10 and started developing application in MVC5. I hosted my application in IIS, but it was throwing below error while accessing URL.

Attribute Routing in ASP.NET MVC 5

As you know, Routing is the important building block in ASP.NET MVC application.
Apart from convention-based routing, MVC 5 supports attribute routing.
In this blog, we will see attribute routing in MVC 5.

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?

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.