我想用以下代码进行删除操作,老提示
老提示除非指定了 DeleteCommand,否则数据源“SqlDataSource1”不支持删除操作。
该怎么做
int m_bianhao =0;
m_bianhao = Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);
string m_sql = "delete from 图书借阅 where 编号= "+m_bianhao;
g_DBProcess.deleteRecord(m_sql);
------解决方案--------------------------------------------------------
jf