473,394 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Multiple DestinationPageUrl in 2.0

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!
Jan 8 '06 #1
3 2185
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" <do**@emailme.com> wrote in message
news:uf**************@TK2MSFTNGP15.phx.gbl...
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!

Jan 8 '06 #2
// 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" <do**@emailme.com> wrote in message
news:uf**************@TK2MSFTNGP15.phx.gbl...
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!

Jan 9 '06 #3
Thanks!

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
// 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" <do**@emailme.com> wrote in message
news:uf**************@TK2MSFTNGP15.phx.gbl...
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!


Jan 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rolf Wester | last post by:
Hi, I have a form with a select element with multiple="true". When using the GET method (I suppose the same happens with the POST method) I can seen that the form sends channels=CH1&channels=CH2...
66
by: Darren Dale | last post by:
Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data a,b,c,d = test()
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
6
by: Ben Hallert | last post by:
Hi guys, I'm trying to figure out what bone headed mistake I made on something I put together. I've got a form (named 'context') that has a variable number of select-multiple inputs on it. ...
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
9
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
0
by: 31471Jack3290 | last post by:
Why DestinationPageUrl wont work with ASP:LOGIN? Someone got that problem b4?
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.