title: Building dynamic links with Repeater control
body: <p>I am rendering data using Repeater control.
  Let's say there are 2 fields in the data source: productName and ProductID</p>
  
  <p>In the following code:</p>
  
  <pre><code>&lt;asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"&gt;
  &lt;HeaderTemplate&gt;
  &lt;ul&gt;
  &lt;/HeaderTemplate&gt;
  &lt;ItemTemplate&gt;
  &lt;li&gt;
  &lt;%#Eval("productName")%&gt; &lt;br/&gt;
  &lt;asp:HyperLink ID="lnkDetails" runat="server" NavigateUrl="~/Details.aspx?ID="&gt;See Details&lt;/asp:HyperLink&gt;
  &lt;/li&gt;
  &lt;/ItemTemplate&gt;
  &lt;FooterTemplate&gt;
  &lt;/ul&gt;
  &lt;/FooterTemplate&gt;
  </code></pre>
  
  <p>What do I need to modify in</p>
  
  <pre><code>&lt;asp:HyperLink ID="lnkDetails" runat="server" NavigateUrl="~/Details.aspx?ID="&gt;See Details&lt;/asp:HyperLink&gt;
  </code></pre>
  
  <p>to include value retreived from the ProductID in the link <strong>NavigateUrl="~/Details.aspx?ID="</strong></p>