ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.
Go to our cool travel reservation system.
@Html.ActionLink("Reserve Now", "Fly", "Flight", new { area = "Travel" }, new { @class = "btn btn-default" })
NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
You can easily find a web hosting company that offers the right mix of features and price for your applications.
| @Html.LabelForModel("ForModel") | '@Html.DisplayNameForModel()' | '@Html.NameForModel()' | '@Html.ValueForModel()' |
| @Html.Label("Name") | '@Html.DisplayName("Name")' | '@Html.Name("Name")' | '@Html.Value("Name")' |
| @Html.LabelFor(m => m.Address) | '@Html.DisplayNameFor(m => m.Address)' | '@Html.NameFor(m => m.Address)' | '@Html.ValueFor(m => m.Address)' |
| @Html.Label("Anon.Address.Street") | '@Html.DisplayName("Anon.Address.Street")' | '@Html.Name("Anon.Address.Street")' | '@Html.Value("Anon.Address.Street")' |
'@ViewBag.Title' should match page heading (still)
| @Html.Label("Name") | @Html.TextBox("Name") |
| @Html.LabelFor(m => m.Address, htmlAttributes: new { @class="control-label col-md-2" }) | @Html.TextBoxFor(m => m.Address, htmlAttributes: new { @class = "form-control" }) |
| @Html.Label("Alive") | @Html.CheckBox("Alive") or @Html.RadioButton("Alive", value: false) False @Html.RadioButton("Alive", value: true) True |
| @Html.LabelFor(m => m.Dependent.Alive) | @Html.CheckBoxFor(m => m.Dependent.Alive) or @Html.RadioButtonFor(m => m.Dependent.Alive, value: false) False @Html.RadioButtonFor(m => m.Dependent.Alive, value: true) True |
| @Html.LabelFor(model => model.Password, htmlAttributes: new { @class="control-label col-md-2" }) | @Html.PasswordFor(m => m.Password, htmlAttributes: new { @class = "form-control" }) |
| @Html.Label("Anon.Name") | @Html.TextBox("Anon.Name") |
| @Html.Label("Anon.Address.Street") | @Html.TextBox("Anon.Address.Street", (object)ViewBag.Anon.Address.Street) |
| @Html.Label("Anon.Address.City") | @Html.TextBox("Anon.Address.City", value: null, format: "{0} (3)") |
| @Html.Label("Anon.Address.State") | @Html.TextBox("Anon.Address.State", value: null, htmlAttributes: new { @class = "form-control" }) |
| @Html.Label("Anon.Address.Country") | @Html.TextBox("Anon.Address.Country", value: null, format: "{0} (4)", htmlAttributes: new { @class = "form-control" }) |
| @Html.Label("Password") | @Html.Password("Password", "some string") |
| @Html.Label("Name", "Display Name") | '@Html.Display("Name")' |
| @Html.Label("Dependent.Name", "Display Dependent.Name") | '@Html.Display("Dependent.Name")' |
| @Html.Label("Alive", "Display Alive") | '@Html.Display("Alive")' |
| @Html.Label("Dependent.Alive", "Display Dependent.Alive") | '@Html.Display("Dependent.Alive")' |
| @Html.Label("Age", "Display Age") | '@Html.Display("Age")' |
| @Html.Label("GPA", "Display GPA") | '@Html.Display("GPA")' |
| @Html.LabelFor(model => model.Name, "DisplayFor Name") | '@Html.DisplayFor(model => model.Name)' |
| @Html.LabelFor(model => model.Dependent.Name, "DisplayFor Dependent.Name") | '@Html.DisplayFor(model => model.Dependent.Name)' |
| @Html.LabelFor(model => model.Alive, "DisplayFor Alive") | '@Html.DisplayFor(model => model.Alive)' |
| @Html.LabelFor(model => model.Dependent.Alive, "DisplayFor Dependent.Alive") | '@Html.DisplayFor(model => model.Dependent.Alive)' |
| @Html.LabelFor(model => model.Age, "DisplayFor Age") | '@Html.DisplayFor(model => model.Age)' |
| @Html.LabelFor(model => model.GPA, "DisplayFor GPA") | '@Html.DisplayFor(model => model.GPA)' |