Multiple DestinationPageUrl in 2.0

Discussion in 'ASP .Net' started by VB Programmer, Jan 8, 2006.

  1. How can you have multiple DestinationPageUrl's, based on their role. For
    example, if their an admin, then goto admin.aspx. If they're a member, goto
    member.aspx.

    Thanks!
    VB Programmer, Jan 8, 2006
    #1
    1. Advertising

  2. VB Programmer

    m.posseth Guest

    well use a form of authentication ( forms , windows ) and then based
    upon he role perfom a redirect to the required page

    regads

    Michel Posseth [MCP]



    "VB Programmer" <> wrote in message
    news:...
    > How can you have multiple DestinationPageUrl's, based on their role. For
    > example, if their an admin, then goto admin.aspx. If they're a member,
    > goto member.aspx.
    >
    > Thanks!
    >
    m.posseth, Jan 8, 2006
    #2
    1. Advertising

  3. VB Programmer

    clintonG Guest

    // Anonymous -- not logged in...
    if (Page.User.Identity.Name == "")
    // redirect...

    if (Roles.IsUserInRole("Guests"))
    // redirect...

    if (Roles.IsUserInRole("Members"))
    // redirect...

    <%= Clinton Gallagher
    METROmilwaukee (sm) "A Regional Information Service"
    NET csgallagher AT metromilwaukee.com
    URL http://metromilwaukee.com/
    URL http://clintongallagher.metromilwaukee.com/



    "VB Programmer" <> wrote in message
    news:...
    > How can you have multiple DestinationPageUrl's, based on their role. For
    > example, if their an admin, then goto admin.aspx. If they're a member,
    > goto member.aspx.
    >
    > Thanks!
    >
    clintonG, Jan 9, 2006
    #3
  4. Thanks!

    "clintonG" <> wrote in message
    news:...
    > // Anonymous -- not logged in...
    > if (Page.User.Identity.Name == "")
    > // redirect...
    >
    > if (Roles.IsUserInRole("Guests"))
    > // redirect...
    >
    > if (Roles.IsUserInRole("Members"))
    > // redirect...
    >
    > <%= Clinton Gallagher
    > METROmilwaukee (sm) "A Regional Information Service"
    > NET csgallagher AT metromilwaukee.com
    > URL http://metromilwaukee.com/
    > URL http://clintongallagher.metromilwaukee.com/
    >
    >
    >
    > "VB Programmer" <> wrote in message
    > news:...
    >> How can you have multiple DestinationPageUrl's, based on their role. For
    >> example, if their an admin, then goto admin.aspx. If they're a member,
    >> goto member.aspx.
    >>
    >> Thanks!
    >>

    >
    >
    VB Programmer, Jan 9, 2006
    #4
    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. 31471Jack3290

    ASP:LOGIN DestinationPageUrl

    31471Jack3290, Sep 27, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    638
    31471Jack3290
    Sep 27, 2006
  2. tocka20
    Replies:
    0
    Views:
    678
    tocka20
    Jun 4, 2007
  3. Replies:
    4
    Views:
    495
  4. Peter
    Replies:
    1
    Views:
    1,182
    Sean Smith
    Jan 21, 2009
  5. jobs
    Replies:
    0
    Views:
    220
Loading...

Share This Page