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. Advertisements

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. Chris Jackson
    Replies:
    2
    Views:
    329
    Chris Jackson
    Jan 22, 2004
  2. John Holmes
    Replies:
    3
    Views:
    456
    =?Utf-8?B?Q2hyaXN0aWFuIEg=?=
    Oct 18, 2004
  3. =?Utf-8?B?dHNoYWg=?=
    Replies:
    2
    Views:
    445
    =?Utf-8?B?dHNoYWg=?=
    May 3, 2006
  4. Replies:
    0
    Views:
    662
  5. =?Utf-8?B?SkogS29yYW4=?=

    aspnet_compiler on on web site other than default.

    =?Utf-8?B?SkogS29yYW4=?=, Aug 16, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    1,768
    =?Utf-8?B?SkogS29yYW4=?=
    Aug 16, 2006
  6. EdHelp
    Replies:
    0
    Views:
    442
    EdHelp
    Oct 18, 2006
  7. Peter Afonin

    How to use the Profile other than default

    Peter Afonin, Mar 3, 2010, in forum: ASP .Net Security
    Replies:
    0
    Views:
    792
    Peter Afonin
    Mar 3, 2010
  8. Diego
    Replies:
    2
    Views:
    265
    Stefan Rusterholz
    Aug 16, 2008
Loading...