If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP Redirect based on Username

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-08-11, 14:42
stanleyc stanleyc is offline
Registered User
 
Join Date: Mar 2011
Posts: 13
ASP Redirect based on Username

I have a few asp pages and I want to have one link for everyone to go to then once they log in (using Windows Authentication in IIS) to the page I would like for them to be redirected to the page I want them to see based on that login. Is that possible at all?? I've searched and searched and can't find anything usable so far. ANY help would be greatly appreciated.

Chris
Reply With Quote
  #2 (permalink)  
Old 06-08-11, 15:07
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Have a go with Response.Redirect(). If you're running ASP.NET, you also have the option of using Server.Transfer().

You should be able to find plenty of tutorials for using those methods. Usually any tutorial mentioning one method will also mention the other.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 06-09-11, 13:51
stanleyc stanleyc is offline
Registered User
 
Join Date: Mar 2011
Posts: 13
Thanks for the reply but I've searched and searched Response.redirect how to's etc and can't find anything talking about redirecting based on a user login using NTLM authentication on IIS???

CS
Reply With Quote
  #4 (permalink)  
Old 06-09-11, 14:12
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Have you done any programming before?
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #5 (permalink)  
Old 06-09-11, 14:30
stanleyc stanleyc is offline
Registered User
 
Join Date: Mar 2011
Posts: 13
I've done just basic programming, pretty much just manipulating whats there most of the time.
Reply With Quote
  #6 (permalink)  
Old 06-09-11, 16:38
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
I suggest taking the time to walk through a full ASP tutorial that covers all the basics. There are a couple different general approaches to take, most are pretty basic once you have a working foundation to draw on.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #7 (permalink)  
Old 06-09-11, 20:54
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
To get your username you need to untick the allow anonymous access option in IIS, then you can do a request on the server variables to find who is coming in and you can do your redirect based on that.

Do a google search on request.servervariables then a search on response.redirect and you should have most of what you need.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On