2011-05-26 27 views
0

我只能獲取數據,但我該如何設置。ASP.NET - 更改pagemethod中的配置文件信息?

 ProfileBase pc = HttpContext.Current.Profile; 
     pc.PropertyValues["field"] = false; //error 
     pc.Save(); 

'' '' '' '' '' ''」

好吧,我沒有從的WebMethod訪問HttpContext.Current.Profile.FieldName,但我可以:

projectPage thisPage = new projectPage(); 
thisPage.updateProfile(HttpContext.Current.User.Identity.Name); 

回答