如何在不使用任何插件的情况下在MVC3视图中显示记录列表 [英] how to show list of records in MVC3 view without using any plugins

查看:68
本文介绍了如何在不使用任何插件的情况下在MVC3视图中显示记录列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是mvc3的新手.我想在不使用gridview或其他插件(例如jquery表和datatable)的情况下在视图中显示记录列表.

只是通过使用html table.还有ADD,EDIT也要做.

请有人帮我.我在Google中搜索过,但我仍然没有想法.

请有人帮我


谢谢

Kim

Hi,

Am new to mvc3. i wants to show list of records in view without using gridview or other plug-in such as jquery table and datatable.

Just by using html table . and also ADD,EDIT also has to do.

please some one help me. i have searched in google still i did''t get ab idea.

Please some one help me


Thanks

Kim

推荐答案

1)GridView控件不是插件.它是您可以使用的默认用户控件.它将为您编写表格,并使您的生活变得简单得多.我鼓励您使用它.
2)如果您真的想通过代码隐藏手动生成html表,那么请继续.您可以在控制器中将HTML创建为字符串,然后将结果字符串分配给视图中span或div标签的innerHtml.
1) The GridView control is not a plug-in. It is a default usercontrol that is at your disposal. It will write the table for you and make your life much, much simpler. I would encourage you to use it.
2) If you really want to go through the pain of manually generating an html table by code-behind, then go ahead. You can create the html in your controller as a string and then assign the resulting string to the innerHtml of a span or div tag in your view.


这篇关于如何在不使用任何插件的情况下在MVC3视图中显示记录列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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