从HTML页面MVC视图导航 [英] Navigate from HTML Page to MVC View
本文介绍了从HTML页面MVC视图导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从那里我必须将用户重定向到上按一下按钮MVC中查看一个网页home.html做为。
我该怎么办呢?
I have a home.html page from where I have to redirect the user to a View in mvc on button click. How can I do that ?
推荐答案
通过以下code,你可以做到这一点。
By following code you can do this
$('#buttonid').on('click',function(){
$(location).attr('href','/controllername/actionname');
});
这篇关于从HTML页面MVC视图导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文