label 绑定数据
来源:互联网 发布:网络教育报名入口 编辑:程序博客网 时间:2024/06/06 03:09
label 绑定数据
本文转自http://archive.cnblogs.com/a/1631188/
SqlCommand comm;
SqlConnection conn;
SqlDataReader dr;
string sonid=Request.QueryString["sonid"].ToString();
//数据库链接语句
conn = new SqlConnection("Integrated Security=SSPI;Persist SecurityInfo=False;Initial Catalog=xigua;Data Source=JPLS-5");
conn.Open();
string sql = "select * from soncity where sonid =" + Convert.ToInt32(sonid);
comm = new SqlCommand(sql, conn);
dr = comm.ExecuteReader();
dr.Read();
lbtel.Text = dr.GetValue(4).ToString();
- label 绑定数据
- label标签数据绑定问题
- label textbox使用sqldatasource 绑定数据
- Eval数据绑定语法绑定Image、Label和HyperLink控件
- 如何将数据库中的字段数据绑定显示在Label或TextBox控件中
- jface databinding:label provider 实现多列表格(Table)数据绑定的两个途径
- WPF 实现跑马灯效果的Label控件,数据绑定方式实现
- label:for事件的绑定
- WPF Label控件在数据绑定Content属性变化触发TargetUpdated事件简单实现类似TextChanged 事件效果
- asp.net 怎样对label进行绑定
- 数据绑定
- 数据绑定
- 数据绑定
- 数据绑定
- 数据绑定
- 数据绑定
- 数据绑定
- 数据绑定
- #pragma once 和 #ifndef ... #define ... #endif 的区别【转载】
- C#正则表达式使用介绍
- java生成随机数
- ORA-19809 超出了恢复文件数的限制
- BuildForge只设置SSL
- label 绑定数据
- SVN常用命令
- Microsoft Mobile访问WCF服务的例子
- 关于lstrcpyn
- HFile: A Block-Indexed File Format to Store Sorted Key-Value Pairs
- 再次写给我们这些浮躁的程序员
- C# List 用法
- 命令行的Rgssad和Rgss2a文件解包器(附源码) - v0.1 20100216
- 解决eclipse安装插件后插件不显示的一些办法