[求助]链接数据库,实现查询功能失败。 Post By:2012/8/1 9:16:00 [显示全部帖子]
我连接了数据库的表,想实现查询功能。代码如下,请问哪里有错,请大家指教,谢谢!
Dim str1 As String str1= e.Form.controls("TextBox1").Text Select Case e.sender.name Case "Button1" Dim cmd As New SQLCommand cmd.CommandText = "select * from {Orders} where OrdersID= '"& str1 &"' " cmd.ExecuteNonQuery() DataTables ("Orders").Load() End Select