【发布时间】:2013-12-27 07:13:43
【问题描述】:
我在 MVC4 应用程序中使用 Kendo 按钮。单击按钮时我应该如何以及在何处将导航写入另一个页面。
@(Html.Kendo().Button()
.Name("btncancel")
.HtmlAttributes( new {type = "button"} )
.Content("Cancel"))
我确实喜欢这个,但我没有得到
<script type="text/javascript">
$(document).ready(function () {
$('#btncancel').click(function (e)
{
location.href = '@Url.Content("~//Company/Index.cshtml")';
});
});
【问题讨论】:
标签: asp.net-mvc-4 button kendo-ui