asp textbox获取显示mysql数据示例代码
更新时间:2014年05月26日 17:37:05 作者:
这篇文章主要介绍了asp textbox如何获取显示mysql数据,需要的朋友可以参考下
复制代码 代码如下:
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();
相关文章
windows2003下使用asp WScript.Shell的设置方法
在windows2000下,IIS默认设置是可以web和可执行程序通信的。但是在2003下IIS关于这方面的服务是禁止的。2007-12-12
巧用FileSystem组件实现WEB应用中的本地特定打印的方法
巧用FileSystem组件实现WEB应用中的本地特定打印的方法...2007-04-04


最新评论