Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Action parameter show incomplete URL in form tag in area.

$
0
0

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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>