asp.net methods in javascript
<p>I have a website 
I need to find the id of my selected profile and assign that value to a variable in javascript
and show that in an alert box
where should i write the function which javascript needs to call 
in the app_code folder'class
or a web page's code file</p>

<pre><code>var some_variable = '&lt;%=the_method()  %&gt;';
</code></pre>
