using <%= tag %>
<p>Hi guys i'am having problem using a property  in &lt;%= %> tags.
The compiler for some reason would not pick up the properties inside the &lt;%= %> tags. 
IDE being used is MVWD
The error i get is </p>

<pre><code>Error   2   'ASP.webusercontrol1_ascx' does not contain a definition for  
'UserName' and no extension method 'UserName' accepting a first argument of type 
'ASP.webusercontrol1_ascx' could be found (are you missing a using directive or an 
assembly reference?)    c:\Users\jonny\Documents\Visual Studio    2010\Projects\WebApplication8\WebApplication8\WebUserControl1.ascx    2   36  WebApplication8
</code></pre>

<p>My WebUserControl1.ascx file</p>

<pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs"   
    Inherits="WebApplication8.WebUserControl1" %&gt;
&lt;b&gt;Information about &lt;/b&gt; &lt;%= this.UserName%&gt; 
&lt;br /&gt;&lt;br /&gt;

&lt;%= this.UserName %&gt; is &lt;%= this.UserAge %&gt; years old and lives in &lt;%= this.UserCountry %&gt;
</code></pre>

<p>and here is my Webusercontrol1.ascx.cs file</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication8
{
public partial class WebUserControl1 : System.Web.UI.UserControl
{

    private string userName;
    private int userAge;
    private string userCountry;

    public string UserName
    {
        get { return userName; }
        set { userName = value; }
    }

    public int UserAge
    {
        get { return userAge; }
        set { userAge = value; }
    }

    public string UserCountry
    {
        get { return userCountry; }
        set { userCountry = value; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {

    }


 }
</code></pre>
