iT邦幫忙

0

關於Profile的問題?, 要如何編輯他人的資料?

  • 分享至 

  • xImage

說明:
例如我現在是已帳號:123的使用者登入,
但我要修改帳號:456的使用者的資料。
如果使用以下程式碼就會修改到我自己的。

Profile.StudentInfo.Number = Number.Text

要如何指向他人的帳號

??? = Number.Text

我試過Profile.GetProfile好像只能使永在讀取無法寫入。

Profile.GetProfile(456).StudentInfo.Number = Number.Text

希望高手指點指點~
感謝~謝謝~

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

4
花輪
iT邦大師 1 級 ‧ 2011-05-29 18:48:53
最佳解答

除非您是 ADMINISTRATOR, 否則, 預設情況下是無法編輯他人的 PROFILES 的喔...

花輪 iT邦大師 1 級 ‧ 2011-05-29 18:49:59 檢舉

若PROFILES可讓隨便人更改, 那不就天下大亂了..

mrsunboss iT邦新手 5 級 ‧ 2011-05-30 13:37:37 檢舉

感謝您的回答,已經找到答案嚕!謝謝!!

<pre class="c" name="code">Dim p As ProfileBase = ProfileBase.Create("456") 
p.Item("number") = number.text 
p.Save() 

我要發表回答

立即登入回答