title: <%# server tags in jquery
body: <p>I am very new to jQuery and have got a quick question.</p>
  
  <p>I wish to use my server side classes in my jQuery code, something similar to this:</p>
  
  <pre><code>$(document).ready(function() {
  var temp = &lt;%# myClass.Id %&gt;;
  })
  </code></pre>
  
  <p>Is this possible? if so, how?</p>
  
  <p>Thank you very much</p>
  
  <p>This is the later question I refined my former question to:</p>
  
  <p>I'm sorry, I think I didn't explain myself too well... I've got a class name User. It's a class I built in my business logic.</p>
  
  <p>I've got a web page named UserProfile, inside it I've got the following property exposing the current logged in user:</p>
  
  <pre><code>    public BL.User CurrUser        {                get { return (BL.User)Session["currUser"]; }        }I want to be able to access this User class from my aspx page using Jquery. How do I do that?
  </code></pre>