Groups | Blog | Home
all groups > asp.net > january 2006 >

asp.net : Multiple DestinationPageUrl in 2.0


VB Programmer
1/7/2006 11:31:03 PM
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
1/8/2006 11:18:59 AM
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]



[quoted text, click to view]

clintonG
1/8/2006 7:08:01 PM
// 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/



[quoted text, click to view]

VB Programmer
1/8/2006 9:30:07 PM
Thanks!

[quoted text, click to view]

AddThis Social Bookmark Button