asp.net,因为我有一个查询.......... [英] asp.net in that i have one query..........

查看:67
本文介绍了asp.net,因为我有一个查询..........的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类不包含GetItems()....?在使用数据表时如何解决此问题?

class doesn''t contain GetItems()....?how to solve this when i m working with datatable??

推荐答案

我猜你想访问表到您的应用程序,

建立连接,执行查询并使用datareader读取它,

那么您可以通过
这样的书面代码使用for获取数据项
lobjdr.getstring(0)//对于第一个索引,如果string
lobjdr.getInt32(1)//如果int提供第二个索引
i guess you want to access table to your application,

make connection, execute query and read it by using datareader,

then you can get data item using for by written code like

lobjdr.getstring(0) // for 1st index if string
lobjdr.getInt32(1) // for 2nd index if int


提供了完整的方案.
还提供一些程序示例代码.
我们怎么知道您的程序中发生了哪种问题?
provide full scenario.
also give some sample code of your program.
how we know which kind of problem occurs in your program?


这篇关于asp.net,因为我有一个查询..........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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