博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Repeater控件绑定SqlDataReader数据源
阅读量:4681 次
发布时间:2019-06-09

本文共 853 字,大约阅读时间需要 2 分钟。

C#源码

string SqlConString = "Data Source=(local);Initial Catalog=FTPData;Integrated Security=True";SqlConnection con = new SqlConnection(SqlConString);con.Open();SqlCommand cmd = new SqlCommand(CreateSQLQueryString(), con);SqlDataReader dr = cmd.ExecuteReader();RepeaterResult.DataSource = dr;RepeaterResult.DataBind();dr.Close();con.Close();

aspx文件中

转载于:https://www.cnblogs.com/lijingpeng/archive/2012/04/29/2476302.html

你可能感兴趣的文章
【模板】离散化
查看>>
LeetCode "Super Ugly Number" !
查看>>
LeetCode "Coin Change"
查看>>
LeetCode "488. Zuma Game" !
查看>>
虚函数、纯虚函数详解
查看>>
django mongodb配置
查看>>
Android Preference 实现长按监听 long-clickable
查看>>
03 django1.0.2 默认管理配置
查看>>
mysql 中 unix_timestamp和from_unixtime函数
查看>>
Java Web项目BlogAutoGenerator编写日志1
查看>>
简单数论(一)
查看>>
Populating Next Right Pointers in Each Node
查看>>
CXF和Axis的比较【转】
查看>>
设计一个函数,它接受不定数量的参数,这是参数都是函数。这些函数都接受一个回调函数作为参数,按照回调函数被调用的顺序返回函数名...
查看>>
Android 轮播
查看>>
GCD介绍(三): Dispatch Sources
查看>>
Mysql 导入导出备份
查看>>
CSS绘制星星评分实现分析
查看>>
LA 3890 Most Distant Point from the Sea(半平面交)
查看>>
CF822C Hacker, pack your bags!(思维)
查看>>