我想通过对数据库查询到的数据写入listbox控件中 5
privatevoidbutton2_Click(objectsender,EventArgse){if(this.textBoxh1.Text!=""){cmd=new...
private void button2_Click(object sender, EventArgs e)
{
if (this.textBoxh1.Text !="")
{
cmd = new SqlCommand("SELECT COUNT(*) FROM dbo.lssj WHERE 红一=3 ", conn);
conn.Open();
?????
}
else {
MessageBox.Show("失败");
}
} 展开
{
if (this.textBoxh1.Text !="")
{
cmd = new SqlCommand("SELECT COUNT(*) FROM dbo.lssj WHERE 红一=3 ", conn);
conn.Open();
?????
}
else {
MessageBox.Show("失败");
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询