How to use the Profile other than default

Discussion in 'ASP .Net' started by Peter Afonin, Mar 3, 2010.

  1. Peter Afonin

    Peter Afonin Guest

    Hello,

    I'm making another attempt to find out how to use a different profile in the
    web application. I though it would be quite simple. but couldn't find an
    answer anywhere.

    All I need to know is how to call "i90ProfileProvider" instead of default
    "i90PartnerProfileProvider" in C# or VB.

    <profile defaultProvider="i90PartnerProfileProvider">
    <providers>
    <clear/>
    <add name="i90PartnerProfileProvider"
    type="System.Web.Profile.SqlProfileProvider"
    connectionStringName="i90Partner"/>
    <add name="i90ProfileProvider"
    type="System.Web.Profile.SqlProfileProvider" connectionStringName="i90"/>

    </providers>

    There must be the way to do this. For user it works just fine:

    MembershipUser user=
    Membership.Providers["providername"].GetUser("username",false);

    If there is a way to add a name for Profile Provider in web.config, then
    there must be a way to use it.

    Or I should do something entirely different to retrieve the user profile
    form another database?

    I would appreciate your help very much.

    Thank you.
    Peter Afonin, Mar 3, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brad
    Replies:
    1
    Views:
    1,134
    Roedy Green
    Jul 19, 2005
  2. Replies:
    0
    Views:
    486
  3. Andy B
    Replies:
    0
    Views:
    518
    Andy B
    May 3, 2008
  4. Steven
    Replies:
    5
    Views:
    481
    Steven
    Oct 24, 2008
  5. Peter Afonin

    How to use the Profile other than default

    Peter Afonin, Mar 3, 2010, in forum: ASP .Net Security
    Replies:
    0
    Views:
    679
    Peter Afonin
    Mar 3, 2010
Loading...

Share This Page