title: link in gridview to details page
body: <p>What I'm trying to do is create a <code>Gridview</code> and in the grid have a <code>HyperLinkField</code> it send me to  a detail page for that item,  I have the part that  filled the grid and the link and how to pass the id of the element to another page</p>
  
  <p>The problem I have is that when I run and click on the link shows me the details page that I want but is blank. when I debugged, I don't reach the details page</p>
  
  <p>here is my code</p>
  
  <p><strong>fill the grid</strong></p>
  
  <pre><code>var datos =  db.Ticket   
          GridView1.DataSource = datos;
          GridView1.DataBind();
  </code></pre>
  
  <p><strong>show the GridView</strong></p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" runat="server"&gt;
     &lt;Columns&gt;
  
        &lt;asp:HyperLinkField HeaderText="Ver Ticket" Text="Ir Historial Ticket" DataNavigateUrlFormatString="~/DetailTicket.aspx?id={0}" DataNavigateUrlFields="IdTicket" /&gt;
     &lt;/Columns&gt;
  
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p><strong>the detail page</strong></p>
  
  <pre><code>public partial class DetailTicket: System.Web.UI.Page
  {
      protected void Page_Load(object sender, EventArgs e)
      {
          if (Request.QueryString["id"] != null)
             var id= Request.QueryString["id"];
          var datos =  db.detailTicket.Where(e=&gt;e.IdTicket==id)   
          GridView1.DataSource = datos;
          GridView1.DataBind();
      }
  }
  </code></pre>