How to add variable + databinding to ASP.NET link navigateurl?
<p>Let's say I have a repeater with the code:</p>

<pre><code>&lt;ItemTemplate&gt;
    &lt;asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='&lt;%#DataBinder.Eval(Container.DataItem, "FileLeafRef")%&gt;'&gt;
        &lt;h2&gt;&lt;%# DataBinder.Eval(Container.DataItem, "Title")%&gt;&lt;/h2&gt;     
    &lt;/asp:HyperLink&gt;                
&lt;/ItemTemplate&gt;
</code></pre>

<p>The FileLeadRef variable only contains the page name though (like test.aspx and not the full URL which I need). I can get the first part of the URL in a variable in page_load so I need to do something like:</p>

<p><code>NavigateUrl='&lt;%myVariable + "/"%&gt;&lt;%#DataBinder.Eval(Container.DataItem, "FileLeafRef")%&gt;'</code> but it obviously doesn't work and a have tried a few varieties without success.</p>

<p>Any suggestions?</p>

<p>Thanks in advance.</p>
