protected void btnUpdate_Click(object sender, EventArgs e) { if (drpdownlist.SelectedItem.Text != "请选择替换商品" || drpdownlist.SelectedItem.Text != "") { if (tbxUpdate.Text != "" || tbxUpdate.Text != null) { string url = tbxUpdate.Text; string GoodID = drpdownlist.Text; GA Gadmin = new GA(); GAController gadmin = new GAController(); if (gadmin.UpdateProductShow(Gadmin, 2, url, GoodID)) { lbPrompt.Text = "修改成功"; } } } }