MVC中单个视图中的多个Buttions [英] Multiple Buttions in a singe view in MVC

查看:107
本文介绍了MVC中单个视图中的多个Buttions的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个示例,我们需要如何处理具有多个按钮的视图。

解决方案

考虑按钮通常与View模型没有任何关系,给你任何有意义的例子都是不可能的。



也许如果你描述了你看到的按钮和View模型之间的关系,我们可以拿出来什么。


通过以下链接,我希望它可以帮助你

http://stackoverflow.com/questions/19650345/mvc-razor-form-with-multiple-different-submit-buttons [ ^ ]



http://blog.maartenballiauw.be/post/2009/11/26/Supporting-multiple-submit-buttons-on-an-ASPNET-MVC-view.aspx [ ^ ]

I need an example how we need to handle a view which has more than one buttons.

解决方案

Considering buttons normally have nothing directly to do with the View model, it's kind of impossible to give you any meaningful examples.

Perhaps if you described what YOU see as the relationship between the buttons and View model, we can come up with something.


go through below link, I hope it help you
http://stackoverflow.com/questions/19650345/mvc-razor-form-with-multiple-different-submit-buttons[^]

http://blog.maartenballiauw.be/post/2009/11/26/Supporting-multiple-submit-buttons-on-an-ASPNET-MVC-view.aspx[^]


这篇关于MVC中单个视图中的多个Buttions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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