当前位置:编程学习 > C#/ASP.NET >>

急用

我想要查询数据库,用页面上所有的button.text作为where条件,怎样才能做到,查到后还要更改对应的button的样式。越详细越好。。。 --------------------编程问答-------------------- string strSql=string.Formart("select * from tableName where tiaojian='{0}'",button.text);
然后执行sql语句得到结果 --------------------编程问答--------------------
引用 1 楼 vip__888 的回复:
string strSql=string.Formart("select * from tableName where tiaojian='{0}'",button.text);
然后执行sql语句得到结果

不行啊,我做的是网站的
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,