Articles : Page 1 of 1
- Filter:
- Views
- Extensibility
-
Creating a Custom ASP.NET MVC Project Template
Jun 1106When you create a new ASP.NET MVC 3 project, the new project wizard dialog contains several options for different MVC project templates: Empty Internet Application Intranet Application (new in the April 2011 Tools update) There’s a lot of white space in that dialog. To many of you, all that unsullied territory smells like opportunity. When I talk about this dialog, I go to great pains to tell folks that, yes!, you too can extend that dialog and add your own project templates in there...
-
Changing Base Type Of A Razor View
Feb 1121Within a Razor view, you have access to a base set of properties (such as Html, Url, Ajax, etc.) each of which provides methods you can use within the view. For example, in the following view, we use the Html property to access the TextBox method. @Html.TextBox("SomeProperty") Html is a property of type HtmlHelper and there are a large number of useful extension methods that hang off this type, such as TextBox. But where did the Html property come from? It’s a property of System.We...
- 1

