How do I pass a server control's actual client Id to a javascript function?
<p>I have the following textbox server control in my web page:</p>

<pre><code>&lt;asp:TextBox ID="txtZip" runat="server" onchange="ZipCode_OnChange(this, &lt;%= txtZip.ClientId %&gt;, txtCity, txtState);/"&gt;
</code></pre>

<p>When the page renders, it is built including the following:</p>

<pre><code>&lt;input name="txtZip" type="text" id="txtZip" onchange="ZipCode_OnChange(this, &amp;lt;%= txtZip.ClientId %&gt;, txtCity, txtState);" /&gt;
</code></pre>

<p>I'm trying to pass the text box's client IDas the 2nd param to this Javascript  function:</p>

<pre><code>function ZipCode_OnChange(txtZipCode, ClientId) {
    var ret;
    ret = WebService.GetCityAndState(txtZipCode.value, OnComplete1, OnError, ClientId);
}
</code></pre>

<p>How do I get it to, on the server, evaluate the texbox's control and to pass that literal string to the Javascript function?</p>

<p>Thanks in advance.</p>
