【发布时间】:2013-12-12 01:47:12
【问题描述】:
我在 shared/_layout.cshtml 中使用 jqueryui 按钮作为登录按钮。下面是点击事件的代码。单击按钮后,我希望将用户转移到帐户控制器的登录视图。
$("#btnSignIn").click(function () {
//alert("This is button on click event.");
top.location.href = '<%= Url.Action("Logon", "Account"); %>'
});
调试时,出现以下错误。我已经在 SO 中寻找帮助。
【问题讨论】:
标签: jquery asp.net-mvc jquery-ui