change default roleprovider at runtime

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?d2lsbGlhbQ==?=

    change default roleprovider at runtime

    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\)

    #2
    Re: change default roleprovider at runtime

    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" <william@discus sions.microsoft .comwrote in message
    news:996766B3-288E-4D86-A39F-466F33976204@mi crosoft.com...
    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

    Comment

    • =?Utf-8?B?d2lsbGlhbQ==?=

      #3
      Re: change default roleprovider at runtime

      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" <william@discus sions.microsoft .comwrote in message
      news:996766B3-288E-4D86-A39F-466F33976204@mi crosoft.com...
      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
      >
      >
      >

      Comment

      Working...