在Web.config中如此定义:
_____________________________________________________________________________
  ....
      <profile enabled="true" >
        <properties>
          <add name="Country"/>
          <add name="Visits" type="System.Int32" defaultValue="0"/>
          <add name="LastVisit" type="System.DateTime"/>
        </properties>
      </profile> 
   </System.Web>
_________________________________________________________________________在ProfileDemo.aspx中如此使用:
_________________________________________________________________________
  protected void Page_Load(object sender, EventArgs e)
        {           //Label1.Text = HttpContext.Current.Profile.LastVisit.ToLongTimesString();
             Label1.Text = Profile.LastVisit.ToLongTimesString();
                        
        }
    }
__________________________________________________________________________
运行时出现如此问题:
Error 1 The name 'Profile' does not exist in the current context  (红色部分就是了)