火车时刻表 C#编程问题
来源:百度知道 编辑:UC知道 时间:2024/06/18 08:31:27
小弟用的是C#,winform编写的啊~~~~
用SQL的!在页面输入城市,
然后转入SQL LINK查找!
然后返回给页面!
就是这样顾
AJAX 技术很好解决得 不知道你是WinForm 还是 Web了
private void button1_Click(object sender, EventArgs e)
{
if (this.Text == "增加二手车信息")
{
sql = string.Format("insert into SecondHandCar (SecHandCarType,PurchasePrice,SellPrice,TenureOfUse,CarFactory,PurchaseDate,Status) values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}')",
textBox1.Text.Trim(), textBox3.Text.Trim(), textBox6.Text.Trim(), textBox4.Text.Trim(), textBox5.Text.Trim(), comboBox1.Text.Trim(), comboBox2.Text.Trim());
}
else if (this.Text == "修改二手车信息")
{
sql = string.Format("update SecondHandCar set SecHandCarType='{0}',PurchasePrice='{1}',SellPrice='{2}',TenureOfUse='{3}',CarFactory=