Use `BeginForm()` in MVC sample
This commit is contained in:
parent
dd4fa762d5
commit
0b327ba7b4
|
|
@ -150,7 +150,7 @@
|
||||||
<p style="padding: 0px 10px;">'@ViewBag.Title' should match page heading (still)</p>
|
<p style="padding: 0px 10px;">'@ViewBag.Title' should match page heading (still)</p>
|
||||||
</div>
|
</div>
|
||||||
<div style="float: left; border: thick solid lightskyblue; margin: 5px; padding: 7px;">
|
<div style="float: left; border: thick solid lightskyblue; margin: 5px; padding: 7px;">
|
||||||
@using (Html.BeginForm(controllerName: "Home", actionName: "Hello", method: FormMethod.Post))
|
@using (Html.BeginForm())
|
||||||
{
|
{
|
||||||
@Html.HiddenFor(m => m.Age)
|
@Html.HiddenFor(m => m.Age)
|
||||||
<table>
|
<table>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue