我已經使用這個代碼存儲的個人資料信息用戶如何查看其他用戶的個人資料信息?
ProfileBase userprofile = HttpContext.Current.Profile;
userprofile.SetPropertyValue("FirstName", TextBoxFirstName.Text);
userprofile.SetPropertyValue("LastName", TextBoxLastName.Text);
userprofile.SetPropertyValue("AboutMe", TextBoxAboutMe.Text);
userprofile.SetPropertyValue("ContactNo", TextBoxContactNo.Text);
,並在web.config中
<profile enabled="true" defaultProvider="AspNetSqlProfileProvider">
<properties>
<add name="FirstName" type="String" />
<add name="LastName" type="String" />
<add name="AboutMe" type="String" />
<add name="ContactNo" type="String" />
</properties>
</profile>
的個人資料信息被存儲並且每個用戶能夠使用這樣的
查看自己的個人資料信息TextBoxFirstName.Text = HttpContext.Current.Profile.GetPropertyValue("FirstName").ToString();
如何獲取其他用戶的配置文件信息說,用戶在文本框中鍵入其他用戶的用戶名,然後單擊按鈕?