or
@using (Ajax.BeginForm("Login", "Account", new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "loginSection", })) { @Html.Partial("_LoginInfoPartial", Model) <input} type="submit" value="Log in" /> <button type="button" id="close_button" onclick="cancelLogin()" >Cancel</button> <script> function cancelLogin() { var window = $("#loginWindow").data("kendoWindow"); window.close(); } </script> }