Quantcast
Viewing all articles
Browse latest Browse all 9386

Action parameter show incomplete URL in form tag in area.

Regards. I use this tag i a view to show form:

<form asp-area="Admin" asp-controller="Account" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">

But show only:

<form method="post" class="form-horizontal" action="/Admin">

This code is in a view inside "Admin" area, @Html.BeginForm not works as well. But if i change the name of the controller(Account) works well.


Viewing all articles
Browse latest Browse all 9386

Trending Articles