如何在ASP.NET MVC3的一页中触发两个按钮 [英] How to fire two buttons in one page on asp.net mvc3

查看:77
本文介绍了如何在ASP.NET MVC3的一页中触发两个按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net mvc3的一页中触发两个按钮
请让我知道
谢谢

How to fire two buttons in one page on asp.net mvc3
Please let me know
thanks

推荐答案

你好,

在视图中调用两个不同的局部动作,然后执行所需的操作.但是,如果要通过单击按钮来调用两个不同的动作,则必须在每个局部类中指定" @ Html.BeginForm " .
Hello,

Call two different partial Action in view and do what ever you want.but if you want to call two different action with respective of button clicks then you must be specify "@Html.BeginForm" in each partial class.




声明两个不同的Function()并根据需要进行调用...


Declare two different Functions() and call it what ever you want...


这篇关于如何在ASP.NET MVC3的一页中触发两个按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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