Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: View Engine (Razor and ASPX) Syntax - ASP.NET MVC

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: Wed, Oct 31, 2012, 12:24 PM


HTML Helpers

The following are all methods of @Html

  • LabelFor — shows the text in [Display(Name="xyz")] (System.ComponentModel.DataAnnotations)
  • DisplayFor — shows field value as read-only "label"
  • TextBoxFor — with formatted date: @Html.TextBoxFor(m => m.DOB, "{0:MM/dd/yyyy}")
  • HiddenFor
  • ValidationSummary
  • ValidationMessageFor
  • CheckBoxFor
  • TextAreaFor
  • DropDownListFor — e.g., @Html.DropDownListFor(m => m.StateID, new SelectList(Model.States, "ID", "Descrip"))
  • PassswordFor
  • ActionLink
  • Partial
  • Raw

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.