How can I use Client ID within a server control?
<p>I was able to do the following in a repeater and it works just fine:</p>

<pre><code> &lt;asp:TextBox ID="txtOtherPartyName" Text='&lt;%# Eval("Name") %&gt;' runat="server" /&gt;
 &lt;asp:RequiredFieldValidator ID="reqLoss" ControlToValidate="txtOtherPartyName"
    data-valmsg-for='&lt;%# Container.FindControl("txtOtherPartyName").ClientID%&gt;' 
    Display="Dynamic" ErrorMessage="Name of party involved is required." runat="server" /&gt;
</code></pre>

<p>The data-valmsg-for attribute in the required validator rendered the server control id just fine.  How can I do the same for a control that sits on a page and is not within a repeater?  I tried similar things without any luck.</p>

<p><strong>Update</strong></p>

<p>So here's what I'm looking to do exactly:</p>

<pre><code>&lt;asp:Textbox id="txtTest" runat="server" /&gt;
&lt;asp:RequiredFieldValidator id="reqTest" data-valmsg-for=**[i want the html rendered id of "txtTest" here]** runat="server" /&gt;
</code></pre>
