Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
protected void gvTransactionDetails_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Edit") { int igvTransactionDetailsIndex = Convert.ToInt32(e.CommandArgument); GridViewRow gvTransactionDetailsrow = gvTransactionDetails.Rows[igvTransactionDetailsIndex]; Session["TDID"] = gvTransactionDetails.DataKeys[igvTransactionDetailsIndex].Value; Response.Redirect("~/AddEditTransactionDetails.aspx?AddEdit=Edit&CusVen=" +sCusVen); } }
Exception.Stack
igvTransactionDetailsIndex
Rows
DataKeys
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)