按照入门经典里面的步骤,设置了个性化配置
这里不太清楚第三个标签为什么总是显示下拉列表里原来选择的内容。
最后的文本框就可以同步显示下拉列表的选择    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            DropDownListCountries.SelectedValue = Profile.Country;
        }        LabelLastVisit.Text = Profile.LastVisit.ToLongTimeString();
        LabelVisitCount.Text = Profile.Visits.ToString();
        LabelSelectedCountry.Text = Profile.Country;        Profile.Visits++;
        Profile.LastVisit = DateTime.Now;    }
    protected void OnCountrySelection(object sender, EventArgs e)
    {
        Profile.Country = this.DropDownListCountries.SelectedValue;
        Profile.Save();
        test.Text = this.DropDownListCountries.SelectedValue;
    }        LabelLastVisit.Text = Profile.LastVisit.ToLongTimeString();
        LabelVisitCount.Text = Profile.Visits.ToString();
        LabelSelectedCountry.Text = Profile.Country;
    把这段移到OnCountrySelection里就可以同步显示了。
    求助各路大神!谢谢