why an object created in the code behind is not available in the aspx page?
<p>I have a simple question. When we create an object in the code behind(".aspx.cs"), why is it not available in the aspx page.</p>

<p>For example, if I have a class(present in another .cs file and not in the code behind) and in that class I have a property declared, lets say "Name". </p>

<pre><code>namespace BLL.SO
{
    public class SOPriceList
    {
        private string _name;
        public string Name
        {
            get { return _name;}
            set { _name = value; }
        }
    }
}
</code></pre>

<p>Now when I create an object, lets say "obj" in the code behind(".aspx.cs"), with scope within the partial class.</p>

<pre><code>namespace Modules.SO
{    
    public partial class PriceListRecordView : PageBase
    {
        SOPriceList obj = new SOPriceList();

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}
</code></pre>

<p>Using this object "obj" I can access the property. Then why can't I use the same object "obj" to get the property in the aspx page in this manner,</p>

<pre><code>&lt;%= obj.Name%&gt;
</code></pre>
