Monday, 30 December 2013

View Engines Present in ASP.NET MVC

In this article we are going to see number of view engines present in the MVC. There are two types of View Engine

1. Razor View Engine
2 .Aspx View Engine

In Razor

  • Code can be done by start of @ 
  • vb and cs file are in the extension of cshtml and vbhtml
In Aspx

  • Code should be in between the <%:  %>
  • vb and cs file are in the same extension .aspx
In the project we can have both aspx and razor view files,We can also use third party view engines.

No comments:

Post a Comment