VB查询数据库用于Ext.NET的Store
来源:互联网 发布:golang mongodb 查询 编辑:程序博客网 时间:2024/06/04 19:00
Public Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load Try con.Open() Dim myCommand As New SqlCommand myCommand.CommandType = Data.CommandType.StoredProcedure myCommand.CommandText = "SeekAgentsByServer_sp" myCommand.Connection = con Dim reader As SqlDataReader = myCommand.ExecuteReader Dim result As New List(Of Object) result.Add(New With { .AgentName = "全部", .AgentID = "" }) While (reader.Read()) result.Add(New With { .AgentName = reader("AgentName").ToString, .AgentID = reader("AgentID").ToString }) End While Me.AgentStore.Data = result Me.AgentStore.DataBind() con.Close() Catch ex As Exception Ext.Net.X.MessageBox.Alert("提示", ex.Message).Show() Return End TryEnd Sub
0 0
- VB查询数据库用于Ext.NET的Store
- ext store filter用于combobox
- EXT.NET中Store的AutoLoad问题
- 【Ext.Net学习笔记】04:Ext.Net中使用数据、Ext.Net Store的用法、Ext.Net ComboBox用法
- VB.NET 数据库查询 [SQL字符串的生成]
- VB.NET ACCESS数据库SQL查询使用时间的问题
- [Ext.Net]Ext.Store基本用法
- Ext.Store 的使用
- Ext.Store 的使用
- [VB.NET]请教:数据库逆向查询问题
- vb.net的模糊查询
- .Net里一个用于驱动摄像头的类(vb.net)
- [VB.NET]糊里糊涂的数据库
- Ext里面Store的例子
- Ext.net ComboBox模糊匹配store数据
- [EXT.NET]前台JS获得store
- vb.net数据库编程(02):再来一个非查询的简单例子
- VB.net数据库编程(03):一个SQLserver连接查询的简单例子
- 基于金字塔Lucas-Kanande寻找的视频流运动检测
- 双线性插值(Bilinear Interpolation)
- 部署好静态网页,上传文件在gh-pages分支转不到master的解决办法
- dom4j解析xml文档
- 4.文字在div垂直居中的方式
- VB查询数据库用于Ext.NET的Store
- TCP选项之SO_RCVBUF和SO_SNDBUF
- application/x-www-form-urlencoded
- Robolectric测试环境移除stetho
- 最详细的Log4j使用教程
- redis脚本:查看近一小时内有哪些用户登录过redis
- 项目管理心得:一个项目经理的个人体会、经验总结
- sql基本语句转载
- IPv4与IPv6的互操作性、守护进程和inet超级服务器、高级I/O函数