Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Multiple DestinationPageUrl in 2.0

Reply
Thread Tools

Multiple DestinationPageUrl in 2.0

 
 
VB Programmer
Guest
Posts: n/a
 
      01-08-2006
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!


 
Reply With Quote
 
 
 
 
m.posseth
Guest
Posts: n/a
 
      01-08-2006
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!
>



 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      01-09-2006
// 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!
>



 
Reply With Quote
 
VB Programmer
Guest
Posts: n/a
 
      01-09-2006
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!
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Novice: Login control & DestinationPageURL? Peter ASP .Net 1 01-21-2009 12:04 PM
Multiple DestinationPageUrl in 2.0 based NOT on roles, but user table field alexandis@gmail.com ASP .Net 4 10-31-2007 12:41 PM
Login destinationpageurl error: 26 - Error Locating Server on deployment jobs ASP .Net Security 0 06-07-2007 01:30 AM
LoginView: Changing the DestinationPageUrl tocka20 ASP .Net 0 06-04-2007 07:50 AM
ASP:LOGIN DestinationPageUrl 31471Jack3290 ASP .Net 0 09-27-2006 12:44 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57