初学者 不明白这个怎么改求讲解:
e:\VSS\03_开发库\src\RM.Web\RMBase\Test\Web_Form2.aspx(264): error CS0123: “GridView1_RowEditing”的重载均与委托“System.Web.UI.WebControls.GridViewEditEventHandler”不匹配
protected void GridView1_RowEditing(object sender, GridViewDeleteEventArgs e)
{
string id = GridView1.Rows[e.RowIndex].Cells[0].Text.ToString();
string name = GridView1.Rows[e.RowIndex].Cells[1].Text.ToString();
string name1 = name + ".jpg";
StorageDBHelp sdb = new StorageDBHelp();
string sdb_sql = " select Picurl from Pricechange_pic where pricechange_id='" + id + "' and picturename = '" + name + "'";
string url = sdb.check_string(sdb_sql); //.check_account(sdb_sql);
if (File.Exists(url))
{
File.Delete(url);
}
StringBuilder sql = new StringBuilder("delete from Pricechange_pic where pricechange_id='" + id + "' and picturename = '" + name + "'");
int result = DataFactory.SqlDataBase().ExecuteBySql(sql);
if (result > 0)
{
this.GridViewBind(id);
ShowMsgHelper.ParmAlertMsg("删除成功!");
return;
}
else
{
ShowMsgHelper.Alert_Error("删除失败!");
return;
}
}