Dear sir,
need your help here,
While user redirect to next page getting error,
Error :
Line 222: int index = Convert.ToInt32(e.CommandArgument);
Line 223: GridViewRow row = GridView1.Rows[index];
Line 224: Response.Redirect("cnm_wv.aspx?Id=" + row.Cells[0].Text + "&EmplooyeId=" + Label1.Text + "&emp_nm=" + Label2.Text + "&dept=" + Label3.Text);
Line 225:
Line 226: //Response.Redirect("Page2.aspx?id=" + txtId.Text + "&name=" + txtName.Text + "&desig=" + txtDesig.Text);
Redirect URI cannot contain newline characters
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "EditButton")
{
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow row = GridView1.Rows[index];
Response.Redirect("cnm_wv.aspx?Id=" + row.Cells[0].Text + "&EmplooyeId=" + Label1.Text + "&emp_nm=" + Label2.Text + "&dept=" + Label3.Text);
//Response.Redirect("Page2.aspx?id=" + txtId.Text + "&name=" + txtName.Text + "&desig=" + txtDesig.Text);
}
}