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

  2. m.posseth

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

  3. clintonG

    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. 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. Andrew Kidd
    Replies:
    3
    Views:
    625
    Andrew Kidd
    Apr 22, 2004
  2. Diane Selby
    Replies:
    4
    Views:
    7,041
  3. tshad
    Replies:
    2
    Views:
    550
    tshad
    Jan 27, 2005
  4. 31471Jack3290

    ASP:LOGIN DestinationPageUrl

    31471Jack3290, Sep 27, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    736
    31471Jack3290
    Sep 27, 2006
  5. tocka20
    Replies:
    0
    Views:
    773
    tocka20
    Jun 4, 2007
  6. Replies:
    4
    Views:
    671
  7. Peter
    Replies:
    1
    Views:
    1,378
    Sean Smith
    Jan 21, 2009
  8. jobs
    Replies:
    0
    Views:
    344
Loading...