I am using bootstrap to collapse and expand a details view for policies. I have the below code and my server tag is not resolving to the client id and stays as <%= details.ClientID %> in the html code. I have the exact same code on a different page and it is working fine. Am I missing something? The details ID is resolving to the asp server ID properly, just my data-target isn't changing.
<asp:Repeater ...>
<tr class="text-right" data-target="#<%= details.ClientID %>" data-toggle="collapse">
<td>Policies</td>
</tr>
<tr runat="server" ID="details" class="collapse">
<asp:Repeater ....>
</asp:Repeater>
</tr>
</asp:Repeater>
I ended up just doing it through Javascript:
$('#<%=detailsParent.ClientID%>').attr('data-target', '#<%=details.ClientID%>');