为什么不能删除数据库中的记录?
public class test : System.Web.UI.Page
{
protected System.Data.SqlClient.SqlDataAdapter myAdapter;
protected System.Data.SqlClient.SqlCommand sqlSelectCommand1;
protected System.Data.SqlClient.SqlCommand sqlInsertCommand1;
protected System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
protected System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
protected t.dsReptFlt ds;
protected System.Data.SqlClient.SqlConnection Conn;
private void Page_Load(object sender, System.EventArgs e)
{
myAdapter.Fill(ds);
ds.Tables[0].Rows.RemoveAt(1);
myAdapter.Update(ds,"ReptFlt");
}
}
浏览test.aspx后为什么删除不了数据库中ReptFlt表中的记录?