I am using a jqueryui button in my shared/_layout.cshtml for the login button. Below is the code for the click event. On clicking the button, I want the user to be transferred to the Logon view of the Account controller.
$("#btnSignIn").click(function () {
//alert("This is button on click event.");
top.location.href = '<%= Url.Action("Logon", "Account"); %>'
});
When debugging, I get the following error. I have looked around in SO for help for this.