如何在MVC应用程序中访问gridview [英] how to access gridview in mvc application

查看:83
本文介绍了如何在MVC应用程序中访问gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是mvc的新手,正在尝试创建一个简单的asp.net mvc网站.我想在我的网站中添加gridview.如何添加.

建议在MVC应用程序中使用Asp控件而不是html控件.


谢谢.

Hi,
I am new in mvc, and trying to create one simple asp.net mvc website. I want to add gridview in my website. How to add that.

Is is recommended to work with asp control rather than html control in mvc application.


Thank you.

推荐答案

据我所知,由于缺乏对视图状态的支持,您不能在MVC中使用大多数服务器控件(包括GridView).看看这个帖子:

http://forums.asp.net/t/1214040.aspx [ http://www.datatables.net/ [ ^ ]
To the best of my knowledge, you can''t use most server controls (including GridView) in MVC due to a lack of viewstate support. have a look at this post:

http://forums.asp.net/t/1214040.aspx[^]

MVC relies more on writing your own HTML. you can achieve some GridView-like functionality using the DataTables plugin for JQuery:

http://www.datatables.net/[^]


嗨..
您可以使用asp.net控件并与数据表或数据集绑定.并使用mvc模型获取记录.
Hi..
You can use the asp.net control and bind with the data table or data set..and fetch the record using mvc model


这篇关于如何在MVC应用程序中访问gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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