Datakeynames, request.querystring
<p>I am doing something wrong in this small code</p>

<p>Page1: ` </p>

<pre><code>protected void GridView1_OnRowDataBound(object sender, GridViewRowEventArgs e)
{

       UserType = DDlUserType.SelectedItem.Text;
       if (e.Row.RowType == DataControlRowType.DataRow)
       {
           // Get the value in the hyperlink column.
           string HyperLinkValue = e.Row.Cells[1].Text;
           HyperLink myLink = new HyperLink();

           myLink.NavigateUrl = "~/ShowMMBProfileStats1.aspx?Profile_ID={0}";
           myLink.Text = HyperLinkValue;
}
</code></pre>

<p>In ShowMMBProfileStats1.aspx</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{

        int MMBProfileID = Convert.ToInt32(Request.QueryString[0]);

}
</code></pre>

<p>It gives me an error</p>

<blockquote>
  <p>Input string was not in a correct
  format.</p>
</blockquote>

<p>In the aspx page, I am assigning <code>datakeynames="Profile_ID"</code></p>

<p>How do I carry this <code>Profile_ID</code> to page1. 
               `
Thanks
Sun</p>
