Server variable in javascript
<p>Is there any way to access server side asp.net variable in javascript? I want to do something like</p>

<pre><code>function setBookmark(val)
{
    document.getElementById('&lt;%# hBookmark.ClientID %&gt;').value=val;
}
</code></pre>

<p>Is it possible in anyway?</p>

<p><strong>*Note*</strong>: hBookmark is a server side html hiddent control, I want to use client ID as IDs are changed as the server controls are rendered.</p>
