Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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")';
});

});
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900