title: Using hyperlink with querystring for gridview row
body: <p>Is there someway to turn the row of a gridview into a hyperlink so that when a user opens it in a new tab for example, it goes to that link? Right now I am using a LinkButton and when the user opens it in a new tab, it doesn't know where to go. </p>
  
  <p>I figured the .aspx code would look something like:</p>
  
  <pre><code>   &lt;asp:TemplateField&gt;
                  &lt;ItemTemplate&gt;              
                      &lt;Hyperlink ID="hyperlink" runat="server" ForeColor="red" HtmlEncode="false" navigationURL="testUrl.aspx"                             
                  &lt;/ItemTemplate&gt;
    &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>The only thing is, our URLs are set up in the C# code behind as a query string, so I'm not sure how to pass that into the navigationURL section.</p>
  
  <p>I'm guessing there's something I can do on the page_load with the query string to redirect to the page I need, but this is my first time working with query strings so I'm a little confused.</p>
  
  <p>Thanks!</p>