SqlProfileProvider - can you use Profile.GetProfile() in a project?

后端 未结 1 414
予麋鹿
予麋鹿 2021-01-28 17:53

I am attempting to use the SqlProfileProvider in an application and can\'t seem to use it the way I want to. I would like to be able to simply call up a profile like this:

相关标签:
1条回答
  • 2021-01-28 18:10

    To retrieve the profile:

    var profile = ProfileBase.Create(HttpContext.Profile.UserName, true);
    

    And here's the MSDN documentation. And a nice blog post about custom profiles.

    0 讨论(0)
提交回复
热议问题