Tag: Razor
Entering preprocessor directive in ASP.NET MVC Razor View
Below is a sample code snippet that demonstrates how to add preprocessor directive in ASP.NET MVC Razor View .
Creating the first ASP.NET MVC Project
In this article , we will explore how to create the first “Hello World” ASP.NET MVC Project. How to Create an ASP.NET MVC Project ? Follow the below steps to create the first ASP.NET MVC Project. 1. Launch Visual Studio 2012 . 2. Click New -> Project 3. This will show the list of all available templates available currently in Visual Studio 2012. Select Web…
Difference between Html.EditorFor and Html.TextboxFor in ASP.NET MVC?
If you are working on Web Application development using ASP.NET MVC, you would come across the Html.EditorFor and Html.TextboxFor in the Razor View. What is the Difference between Html.EditorFor and Html.TextboxFor in ASP.NET MVC? The Html.TextboxFor creates a textbox with the input type of text. It will always render the input textbox. The EditorFor is a kind of smart helper method. This will render the…