-
Notifications
You must be signed in to change notification settings - Fork 25
Html.BeginForm
Mariusz Kerl edited this page Dec 8, 2017
·
1 revision
Rendering form tag is also easy and does not require any extra work.
@using (Html.BeginForm("Index", "Home", new { tenant = "mycompany" }, FormMethod.Post))
{
}
If your host is http://mycompany.localhost:54575
will render
<form url="/" type="post">
</form>
when current host is different it will render
<form url="http://mycompany.localhost:54547" type="post">
</form>