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);