Advertisement
otkalce

MVC View Basics

Apr 11th, 2023
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.32 KB | Source Code | 0 0
  1. @using (Html.BeginForm())
  2. {
  3.     <div class="form-group">
  4.     @Html.Label(labelText: "First Name", expression: "firstName")
  5.     @Html.TextBox("firstName", value: "", htmlAttributes: new { @class = "form-control" })
  6.     </div>
  7.     <div>
  8.         <input type="submit" value="Add" class="btn btn-secondary" />
  9.     </div>
  10. }
Tags: mvc-basics
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement