change default roleprovider at runtime

Discussion in 'ASP .Net' started by =?Utf-8?B?d2lsbGlhbQ==?=, Nov 13, 2007.

  1. Hi,

    Could anyone tell me how to change the default roleprovider at runtime?
    Basically I have a few sets of roleprovider and membership provider, I want
    to switch among them at runtime based on some sort of identifier.

    Thanks.

    William
     
    =?Utf-8?B?d2lsbGlhbQ==?=, Nov 13, 2007
    #1
    1. Advertising

  2. Set up a facade layer with a factory and instantiate the one you would like
    based on whatever condition you use to determine which one should be used.

    --
    Gregory A. Beamer
    MVP, MCP: +I, SE, SD, DBA

    *************************************************
    | Think outside the box!
    |
    *************************************************
    "william" <> wrote in message
    news:...
    > Hi,
    >
    > Could anyone tell me how to change the default roleprovider at runtime?
    > Basically I have a few sets of roleprovider and membership provider, I
    > want
    > to switch among them at runtime based on some sort of identifier.
    >
    > Thanks.
    >
    > William
     
    Cowboy \(Gregory A. Beamer\), Nov 13, 2007
    #2
    1. Advertising

  3. Hi Gregory,

    Could you give me a sample code?

    Thanks.



    "Cowboy (Gregory A. Beamer)" wrote:

    > Set up a facade layer with a factory and instantiate the one you would like
    > based on whatever condition you use to determine which one should be used.
    >
    > --
    > Gregory A. Beamer
    > MVP, MCP: +I, SE, SD, DBA
    >
    > *************************************************
    > | Think outside the box!
    > |
    > *************************************************
    > "william" <> wrote in message
    > news:...
    > > Hi,
    > >
    > > Could anyone tell me how to change the default roleprovider at runtime?
    > > Basically I have a few sets of roleprovider and membership provider, I
    > > want
    > > to switch among them at runtime based on some sort of identifier.
    > >
    > > Thanks.
    > >
    > > William

    >
    >
    >
     
    =?Utf-8?B?d2lsbGlhbQ==?=, Nov 14, 2007
    #3
    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. Mark Olbert

    MembershipProvider/RoleProvider Problems

    Mark Olbert, Jan 10, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    2,909
    Steven Cheng[MSFT]
    Jan 10, 2006
  2. Mark Olbert
    Replies:
    0
    Views:
    649
    Mark Olbert
    Jan 10, 2006
  3. Chris
    Replies:
    0
    Views:
    873
    Chris
    Mar 6, 2006
  4. Burak Gunay
    Replies:
    4
    Views:
    2,171
    Erik Funkenbusch
    Mar 22, 2006
  5. Keith Patrick
    Replies:
    1
    Views:
    687
    Dominick Baier
    Aug 20, 2006
Loading...

Share This Page