Answers for "save form in asp.net mvc"

C#
0

save form in asp.net mvc

@Html.ValidationSummary(true)


<fieldset>
    <legend>WorkType</legend>

    <div class="editor-label">
        @Html.Label("Work Type")
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(model => model.Type)
        @Html.ValidationMessageFor(model => model.Type)
    </div>

    <div class="span7">
        <input type="submit" value="Create" class="span2 btn btn-default" />
        <button type="button" onclick="location.href='@Url.Action("Index", "Slider")'" class="btn btn-primary">
            Back to List
        </button>
    </div>
</fieldset>
Posted by: Guest on September-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language