How can I access a server-side asp.net variable in JavaScript? I'm trying to achieve something like this:
function setBookmark(val)
{
document.getElementById('<%# hBookmark.ClientID %>').value=val;
}
Is there any way to accomplish this?
*Note*: hBookmark is a server-side HTML hidden control, and I want to use the client ID since IDs change as server controls are rendered.