ASP GridView1_RowDeleting列名无效的问题
的有关信息介绍如下:protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { SqlConnection conn = new SqlConnection(); conn.ConnectionString = "Data Source=WWW-76912774763;Initial Catalog=sxhj;Integrated Security=True"; SqlCommand DeleteSql = new SqlCommand("delete from Users where Uid=‘" GridView1.DataKeys[e.RowIndex].Value.ToString() "’", conn); conn.Open(); DeleteSql.ExecuteNonQuery(); conn.Close(); Response.Write(""); }SQL语句加‘’