mvc4中的剑道按钮导航 [英] Kendo button navigation in mvc4

查看:123
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆