Databound Value in href javascript link
<p>I've trawled the net looking for the syntax to get this working and i'm hoping this is a quick fix else i'll go mad.  Basically I have a nested repeater and the button below hides another nested repeater.</p>

<p><code>((location_details)((RepeaterItem)Container.Parent.Parent).DataItem).tbl_location.location_id</code> evaluates perfectly well (3824 in the case i'm testing), but when I try to pass it so that its a string parameter for the javascript function it fails everytime.</p>

<pre><code>&lt;asp:Linkbutton ID="lb_showhide_oloc_gnotes" runat="server" Text="Expand/Close" 
 href='javascript:sltoggle('" + &lt;%# ((location_details)((RepeaterItem)Container.Parent.Parent).DataItem).tbl_location.location_id %&gt; +" '); return false;' /&gt;
</code></pre>

<p>Any ideas what i'm missing (I know the above syntax is wrong I must have changed it 100 times already but you get the idea).</p>

<p>thanks!</p>
