手机
当前位置:查字典教程网 >编程开发 >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读取XML文件的具体方法与示例

asp的通用数据分页类

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

ASP中进行HTML数据及JS数据编码

ASP语法高亮类代码

asp 防止SQL注入代码

asp 查询数据代码

在线管理数据库 类

非常不错的列出sql服务器上所有数据库的asp代码

精品推荐
分类导航