62,046
社区成员
发帖
与我相关
我的任务
分享
<profile>
<properties>
<add name="Country"/>
<add name="Visits" type="System.Int32" defaultValue="0"/>
<add name="LastVisit" type="System.DateTime"/>
</properties>
</profile>
protected void Page_Load(object sender, EventArgs e)
{
LabelLastVisit.Text = Profile.LastVisit.ToLongTimeString();
LabelVisitCount.Text = Profile.Visits.ToString();
LabelSelectedCountry.Text = Profile.Country;
Profile.Visits++;
Profile.LastVisit = DateTime.Now;
}