Pass jQuery Variable into ASP.NET Code Behind Using HiddenField
<p>I'm experiencing problems passing the physical size of a div (height and width) into an ASP.NET variable using a hidden field and jQuery.</p>

<p>This is my code, but it is not working:</p>

<pre><code>$("&lt;%=hfAdvertHeight.ClientID %&gt;").val($("#Advert_Container").attr("height"));
</code></pre>

<p>Any ideas?</p>

<p>Many thanks.</p>
