Author: n00raina | Posted on: 4/4/2010 8:07:59 AM | Views : 236

This statement is giving an error of " Input string was not in a correct format "
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Insert" && Page.IsValid)
        {
            int index = Convert.ToInt32(e.CommandArgument);
            Response.Write(index);
        }
    }




...

Go to the complete details ...