Call an ASP.NET function from javascript with a client side parameter
<p>Actually the code is self-explanatory.. I am trying to assign a javascript variable the falue of a form element, which needs to be formatted by a function on the server..</p>

<p>the below code does not work. it does not get the form element but rather assumes $('#formvalue').val() is the string I am passing in..</p>

<pre><code>var myvar = '&lt;%= MyNamespace.MyClass.MyFunction("' + $('#formvalue').val() + '") %&gt;'
</code></pre>

<p>any ideas?</p>
