Archive by author: Apoorva H VReturn
Apoorva H V | MVC | MVC | 1 Comments | |
Apoorva H V | MVC | MVC | 0 Comments | |

THE RAZOR VIEW ENGINE IN MVC

View Engine is responsible for rendering the view into html form to the browser.ASP.NET MVC includes two different view engines, the newer Razor View Engine and the older Web Forms View Engine. What is Razor?The Razor view was introduced with ASP.NET MVC 3 and is the default view engine moving forward.Razor provides a streamlined syntax for expressing views that minimizes the amount of syntax and extra characters. It effectively gets out of your way and puts as little syntax as possible between ...
Read More
Apoorva H V | MVC | MVC | 0 Comments | |

ViewData and ViewBag in MVC

ASP.NET MVC provides us two options ViewData and ViewBag for passing data from controller to view.ViewData and ViewBag are almost similar. Passing data with ViewBag.The ViewBag feature allows us to define arbitrary properties on a dynamic object and access them in a view.The dynamic object is accessed through the Controller.ViewBag property.Let us see how the ViewBag works through a small example.After creating a new MVC application in the HomeController Write the following code in the Inde...
Read More
Apoorva H V | MVC | MVC | 0 Comments | |

Creating a Simple Form with Validation Using ASP.NET MVC 4 Empty Template

There are multiple Validation attributes available in MVC. Validation attributes comes from System.ComponentModel.DataAnnotations.Available validation attributes are-System.ComponentModel.DataAnnotations.CompareAttributeSystem.ComponentModel.DataAnnotations.CustomValidationAttributeSystem.ComponentModel.DataAnnotations.DatatypeAttributeSystem.ComponentModel.DataAnnotations.MaxLengthAttribueSystem.ComponentModel.DataAnnotations.MinLengthAttributeSystem.ComponentModel.DataAnnotations.RangeAttribut...
Read More
Apoorva H V | MVC | MVC | 1 Comments | |

  • Recent
  • Popular
  • Tag
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *