在ASP.NET MVC中使用数据集 [英] Use DataSet In ASP.NET MVC

查看:127
本文介绍了在ASP.NET MVC中使用数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在asp.net mvc 1.0中使用数据集,而不是Linq to Sql.

任何人都可以帮助我.我想显示使用Asp.Net MVC 1.0的客户列表

我是ASP.NET MVC 1.0的新用户,您能给我一个数据集的例子吗?

谢谢
/> John

I want to use dataset in asp.net mvc 1.0 rather than Linq to Sql.

anyone can help me out. i want to show list of Customer using Asp.Net MVC 1.0

i am new in ASP.NET MVC 1.0 can you give me an example of dataset.

Thanks
John

推荐答案

请访问www.asp.net/forums询问asp.net问题.

我是新手到MVC,也大多是用Linq to SQL原型制作的,因为它可以使事情变得更快.我猜您可以像传统的ASP.NET应用程序一样编写数据集代码,当您将此数据集绑定到网格并尝试引入内联编辑和分页之类的功能时,都会出现此问题,这些功能都可用于回发.

很遗憾,MVC体系结构不支持回发.我听说Micrsoft也在开发MVC感知的Web控件.

如前所述,发布到asp.net论坛可能会为您带来更好的响应.
Please ask asp.net questions at www.asp.net/forums.

I am new to MVC as well, mostly prototyped with Linq to SQL since it makes things much faster. I guess you can write dataset code like a conventional ASP.NET application, the problem will arise when you bind this dataset to a grid and try to introduce features like inline editing and paging, which all work on postbacks.

Unforunately, The MVC architecture doesnt support postbacks. I heard that Micrsoft is working on MVC aware web controls as well.

As said earlier, posting to the asp.net forums would probably get you a better response.


这篇关于在ASP.NET MVC中使用数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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