如何在mvc3中创建checkboxlistfor [英] How to create checkboxlistfor in mvc3

查看:80
本文介绍了如何在mvc3中创建checkboxlistfor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii to all,

我试图在我的视图中创建checkboxlistfor(MVC3Razor)以显示员工角色列表。但是在我的html助手中我没有找到checkboxlistfor.Please任何人都告诉我复选框列表是不存在于MVC3中,如果不存在请告诉我它存在于哪个版本的mvc中,我应该如何将其添加到我当前的版本(即MVC3)。提前谢谢



谢谢

Ramu

解决方案

您可以使用MVC 3执行此操作。但是现有的checkboxlistfor没有扩展方法。但你可以使用下面提到的url来了解如何使用自定义扩展方法。

检查出来: CheckBoxList(For) - 缺少MVC扩展 [ ^ ]



我希望这会对你有所帮助。

Hii to all,
Iam trying to create checkboxlistfor in my view(MVC3Razor) to show list of employee roles.But in my html helper i didn't find checkboxlistfor.Please any one tell me is checkboxlistfor is not present in MVC3,if not present please tell me from which version of mvc it is present,how should i add it to my current version(i.e MVC3).Thanks in advance

Thanks
Ramu

解决方案

You can do this with MVC 3.But there is no existing extension method for checkboxlistfor. But you could use below mentioned url for find out how to do with custom extension method.
Check this out : CheckBoxList(For) - A missing MVC extension[^]

I hope this will help to you.


这篇关于如何在mvc3中创建checkboxlistfor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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