当我单击链接时未输入我的控制器
所以我已经声明了
<ul class="dropdown-menu" role="menu">
<li>
<a href='@Url.Action("Register", "Account", new { Tipo = "Proveedores" })'>Cotizador Express</a>
</li>
</ul>
控制器:
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
//public async Task<ActionResult> Register(LoginViewModel model)
public ActionResult Register(LoginViewModel model)
{
return View("x");
}
答案 0 :(得分:-1)
以下方法应该起作用:
[this is not a link]<a href="<%: Url.Action("Register", "Account", new { Tipo = "Proveedores" })>Cotizador Express</a>