SqlDataReader 的问题。。。 上面的没问题,可以读第一条记录DataReader的Read方法之后会到第一条记录,没有Read是在BOF 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用While myDataReader.Read()……(读记录或者设值)end while myConnection.Open() myDataReader = myCommand.ExecuteReader() If myDataReader.Read() = False Then Else '为各个text赋值 LblID.Text = CStr(myDataReader("id")) LblName.Text = CStr(myDataReader("name")) LblTel.Text = CStr(myDataReader("tel")) continue End If 【根据短信内容】逻辑判断 各位高手,谁做过像酷虫网一样的网站? 請問VS2005怎么讀客戶端的網卡物理地址或者硬盤號呢? 我在網上看了很多代碼,那只是讀服務器端的,有沒有人用過的!謝謝! 离开页面,清掉session 高分求救gridview控件的问题 TextBox存放带些文本时出的问题 急,怎样直接获取GridView中第R行第C列的值? .net程序打包的时候出现不可恢复的错误是怎么回事? 关于单选框的问题。 高分求救﹐指定DataSet中的表為水晶報表rpt文件數據源 ASP.NET中如何将DataGrid的数据保存为一个文本文件? 菜鸟求助:sql连接不上了
While myDataReader.Read()
……(读记录或者设值)
end while
myDataReader = myCommand.ExecuteReader()
If myDataReader.Read() = False Then
Else
'为各个text赋值
LblID.Text = CStr(myDataReader("id"))
LblName.Text = CStr(myDataReader("name"))
LblTel.Text = CStr(myDataReader("tel"))
continue
End If