D
Dave Bailey
When I execute the following code:
private void mrGrid_ItemCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
if (e.CommandName == "PR")
{
string targetPage
= "prDetailsForm.aspx?PR=" + e.Item.Cells[5].Text;
Response.Redirect(
targetPage, true );
}
}
I get the following error:
Specified argument was out of the range of valid values.
Parameter name: index
I double checked and the information is definitely in Cell
5.
Is there something I am missing?
Thanks,
Dave
private void mrGrid_ItemCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
if (e.CommandName == "PR")
{
string targetPage
= "prDetailsForm.aspx?PR=" + e.Item.Cells[5].Text;
Response.Redirect(
targetPage, true );
}
}
I get the following error:
Specified argument was out of the range of valid values.
Parameter name: index
I double checked and the information is definitely in Cell
5.
Is there something I am missing?
Thanks,
Dave