手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp textbox获取显示mysql数据示例代码
asp textbox获取显示mysql数据示例代码
摘要:复制代码代码如下:usingMySql.Data.MySqlClient;MySqlConnectionconn=newMySqlConne...

复制代码 代码如下:

using MySql.Data.MySqlClient;

MySqlConnection conn = new MySqlConnection("server=(local);database=abc;uid=;pwd=");

conn.Open();

MySqlCommand com = new MySqlCommand("select * from tb_xxjj",conn);

MySqlDataReader dr = com.ExecuteReader();

dr.Read();

TB_xxjj.Text = dr["title"].ToString();

content.Text = dr["content"].ToString();

【asp textbox获取显示mysql数据示例代码】相关文章:

asp 过滤数组重复数据

asp 全面安全数据连接代码

asp html代码转安全ascii代码

实现对Access数据库表重命名的一段代码

asp 查询数据代码

用asp实现检测文件编码

asp获取用户真实IP地址的方法

asp中用数据库生成不重复的流水号

asp读取xml文件

用ASP读取XML文件的具体方法与示例

精品推荐
分类导航