Minggu, 10 Februari 2019

Profile access in ASP.NET web services

How to add Profilecommon in webservice use asp.net.


Roles.AddUserToRole(username, "Nasabah");
var profile = ProfileBase.Create(username);
profile.SetPropertyValue("UserCode", CIF);         
profile.Save();

 or


MembershipUser mu = Membership.GetUser(userName, false);
ProfileCommon p = (ProfileCommon)ProfileBase.Create(mu.UserName, true);
 
i hope this help u.