protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (!e.CommandName.Equals("Page")) { if (e.CommandName.Equals("cmdViewDetails")) { Int32 index = Convert.ToInt32(e.CommandArgument); HiddenField hd =(HiddenField)GridView1.Rows[index].FindControl("HiddenField1"); Int64 cid = Convert.ToInt64(hd.Value); Response.Redirect("ViewCProfile.aspx?cid=" + cid); } } }
index
GridView
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)