473,398 Members | 2,404 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,398 software developers and data experts.

Re-route to selected default page

Hi,

I use standard form-based authentication. If they haven't logged on yet they
get routed to my logon page and all is well. Now, I want to implement a
usability feature that after logging in, will route them to their personally
selected default page.

Where should I do this, in the Page_Load event of the Default.aspx page?
What method does one call to reroute the request?

Thanks in advance,

Paul
Nov 18 '05 #1
2 1378
Paul:

You have several options available. I'm assuming that you are obtaining the
default page the user has selected from either a database or a cookie - also
you could create a session variable with this info contained.

You could check for the default page setting (whereever it comes from) and
route them to the desired default page in the page load event as you
indicated.

For example:

if not ispostback
if (logged in - however defined) and (default page defined)
response.redirect(mydefault)
end if
end if

Good Luck!

"paul reed" <pr****@jacksonreed.com> wrote in message
news:Oq****************@TK2MSFTNGP11.phx.gbl...
Hi,

I use standard form-based authentication. If they haven't logged on yet they get routed to my logon page and all is well. Now, I want to implement a
usability feature that after logging in, will route them to their personally selected default page.

Where should I do this, in the Page_Load event of the Default.aspx page?
What method does one call to reroute the request?

Thanks in advance,

Paul

Nov 18 '05 #2
Paul:

Let me add to the prior post - if they login on the default page then you
would want to remove the

if not ispostback

endif

so they will be routed to their page

Fred

"Fred Nelson" <fr**@smartybird.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
Paul:

You have several options available. I'm assuming that you are obtaining the default page the user has selected from either a database or a cookie - also you could create a session variable with this info contained.

You could check for the default page setting (whereever it comes from) and
route them to the desired default page in the page load event as you
indicated.

For example:

if not ispostback
if (logged in - however defined) and (default page defined)
response.redirect(mydefault)
end if
end if

Good Luck!

"paul reed" <pr****@jacksonreed.com> wrote in message
news:Oq****************@TK2MSFTNGP11.phx.gbl...
Hi,

I use standard form-based authentication. If they haven't logged on yet

they
get routed to my logon page and all is well. Now, I want to implement a
usability feature that after logging in, will route them to their

personally
selected default page.

Where should I do this, in the Page_Load event of the Default.aspx page?
What method does one call to reroute the request?

Thanks in advance,

Paul


Nov 18 '05 #3

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

Similar topics

1
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
4
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as...
1
by: Chris | last post by:
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm going wrong? Thanks in advance and sorry again...
4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
1
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with...
10
by: James | last post by:
What is the best method for creating a Web Page that uses both PHP and HTML ? <HTML> BLA BLA BLA BLA BLA
8
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an...
8
by: Lothar Scholz | last post by:
Because PHP5 does not include the mysql extension any more is there a chance that we will see more Providers offering webspace with Firebird or Postgres Databases ? What is your opinion ? I must...
1
by: joost | last post by:
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? DELETE FROM manufacturers WHERE manufacturers_id ...
2
by: sky2070 | last post by:
i have two file with jobapp.html calling jobapp_action.php <HTML> <!-- jobapp.html --> <BODY> <H1>Phop's Bicycles Job Application</H1> <P>Are you looking for an exciting career in the world of...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.