Skip to content

Instantly share code, notes, and snippets.

@Jazzeroki
Created March 4, 2015 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jazzeroki/edb2de61f13b34d93909 to your computer and use it in GitHub Desktop.
Save Jazzeroki/edb2de61f13b34d93909 to your computer and use it in GitHub Desktop.
How to create a form and specify a model to build to
@using (Html.BeginForm("Index", "Index", FormMethod.Post, new PowerteqDTReport.Models.IndexSystemUptime())) {
<div class="row">
<div class="col-sm-3"><p><h3>Start Date/Time</h3></p><p><h5>example 3/4/2015 6:00 am</h5></p><p>start date/time box @Html.EditorFor(l=> l.</p></div>
<div class="col-sm-3"><p><h3>End Date/Time</h3></p><p><h5>example 3/4/2015 8:00 am</h5></p><p>start date/time box</p></div>
</div>
<div class="row">
<div class="col-sm-3">Submit Button</div>
</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment