int roomId = Convert.ToInt32(this.GridView1.Rows[(int)e.CommandArgument].Cells[0].Text);这段代码哪里错了,我不知道哪里错误了,它报错
roomId = Convert.ToInt32(this.GridView1.Rows[(int)e.CommandArgument].Cells[0].Text);这段代码哪里错了,我不知道哪里错误了,它报错 --------------------编程问答--------------------
//这样试试?
int i = Convert.ToInt32(e.CommandArgument);
roomId = Convert.ToInt32(this.GridView1.Rows[i].Cells[0].Text);
补充:.NET技术 , ASP.NET