mvc4中的剑道按钮导航 [英] Kendo button navigation in mvc4
问题描述
我在MVC4应用程序中使用了Kendo按钮。如何在按钮点击时将导航编写到另一页面。
@(Html.Kendo()。按钮()
.Name(btncancel)
.HtmlAttributes(new {type =button})
.Content(取消))
我喜欢这样但我没有得到
< script type =text / javascript>
$(document).ready(function(){
$('#btncancel')。click(function(e)
{
location.href ='@ Url.Content(〜// Company / Index.cshtml)';
});
});
(document).ready(function(){
< blockquote>('#btncancel')。点击(功能(e)
{
location.href ='@ Url.Content(〜// Company / Index。 cshtml)';
});
});
Am using Kendo button in MVC4 application .How and where should i write the Navigation to another page on button click .
@(Html.Kendo().Button()
.Name("btncancel")
.HtmlAttributes( new {type = "button"} )
.Content("Cancel"))
I did like this but i am not getting
<script type="text/javascript">
$(document).ready(function () {
$('#btncancel').click(function (e)
{
location.href = '@Url.Content("~//Company/Index.cshtml")';
});
});
(document).ready(function () {
('#btncancel').click(function (e)
{
location.href = '@Url.Content("~//Company/Index.cshtml")';
});
});
这篇关于mvc4中的剑道按钮导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!