手机
当前位置:查字典教程网 >编程开发 >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连接sqlserver数据库实现代码

asp读取xml文件

ASP语法高亮类代码

asp 查询数据代码

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

asp获取当前URL代码

常见的ASP获取时间操作的代码

在线管理数据库 类

ASP AspUpload上传文件示例代码

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

精品推荐
分类导航