源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

asp textbox获取显示mysql数据示例代码

  • 时间:2022-01-29 07:28 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:asp textbox获取显示mysql数据示例代码
[u]复制代码[/u] 代码如下:
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();
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部