我如何从Dataset.Xsd读取数据 [英] How I Read Data From Dataset.Xsd
本文介绍了我如何从Dataset.Xsd读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从表中读取数据。我想使用数据集(---。xsd文件)。我如何从表中读取数据并添加到Listbox。
I want to read data from table. I want to use from dataset(---.xsd file). how i read data from table and add to Listbox.
推荐答案
目前还不完全清楚你想做什么,所以这是我最好的猜测。 />
如果您有模式,可以在Visual Studio中创建一个DataSet,如下所示:创建数据集 [ ^ ]
当你有一个DataSet时,可以通过数据库从数据库填充它 SqlDataAdapter [ ^ ]
最后,您需要将数据绑定到列表框: ASP.NET数据绑定概述 [ ^ ]
或如何将数据绑定到ASP.NET中的ListBox控件使用C# [ ^ ]
我希望这会对你有所帮助。
It is not entirely clear what it is you want to do, so this is my best guess.
If you have a schema you can create a DataSet in Visual Studio like this: Creating a DataSet[^]
When you have a DataSet you can fill it from a database via a SqlDataAdapter[^]
Finally you need to bind the data to the list box: ASP.NET data binding overview[^]
or How to bind data to ListBox control in ASP.NET using C#[^]
I hope this will help you on the way.
这篇关于我如何从Dataset.Xsd读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文