string reser = ((TextBox)GridView_reserveinfoRows[eRowIndex]Cells[2]Controls[0]FindControl("txtReserveman"))TextToString()Trim();
Cells[2]有没有两列?Cells[2]里有没有控件?
最好还是判断下CellsLenght与ControlsLenght
如:
TextBox tb = GridView_reserveinfoRows[eRowIndex]Cells[2]Controls[0]FindControl("txtReserveman")) as TextBox
if(tb != null)
string reser = tbText
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)