62,269
社区成员
发帖
与我相关
我的任务
分享
string sql = "delete from phone where id='" + TextBox3.Text + "'";
conn.Open();
SqlCommand cmd = new SqlCommand(sql , conn);
try
{
cmd.ExecuteNonQuery();
conn.Close();
}
catch (System.Exception e) {
conn.Close();
}
SqlDataAdapter dbAdapter = new SqlDataAdapter(你要帮顶的语句?, conn);
DataSet ds = new DataSet();
Sda.Fill(ds, "LocalView");
GridView1.DataSource = Ds.Tables["LocalView"].DefaultView;
GridView1.DataBind();
conn.Close();