title: How to access class object in aspx file from its code behind file
body: <p>this is my class in some namespace</p>
  
  <pre><code>public class UserObject
  {
       public int MasterManagement_roleid = 0;
  }
  </code></pre>
  
  <p>This Class have instance declare in code behind file like this</p>
  
  <pre><code>public partial class ContractorManagement_MaterialReturn : System.Web.UI.Page
  {
              UserObject objUser = new UserObject();
              protected void Page_Load(object sender, EventArgs e)
              {
                   \\some code
              }
  }
  </code></pre>
  
  <p>And In my aspx file i have some thing like this</p>
  
  <pre><code> &lt;%if(objUser.MasterManagement_roleid.ToString().Trim().Equals("-1")){ %&gt; // This line error comes always please help
                //some tags to be displayed     
      &lt;%} %&gt;
  </code></pre>
  
  <p>Error Is 
  server application '/' some thing like this</p>