protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
string uid = this.GridView1.DataKeys[e.RowIndex][0].ToString();//老是提示错误:索引超出范围。必须为非负值并小于集合大小。
参数名: index int userid = Convert.ToInt32(uid);
clu.deluser(userid);
Response.Write("<script language='javascript'>alert('删除成功!');</script>");
getdata();
}
晕啊~!这是怎么错了???
{
string uid = this.GridView1.DataKeys[e.RowIndex][0].ToString();//老是提示错误:索引超出范围。必须为非负值并小于集合大小。
参数名: index int userid = Convert.ToInt32(uid);
clu.deluser(userid);
Response.Write("<script language='javascript'>alert('删除成功!');</script>");
getdata();
}
晕啊~!这是怎么错了???
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货