Forums

This topic is locked

Dynamic Link

Posted 08 Oct 2001 19:50:25
1
has voted
08 Oct 2001 19:50:25 Adam Kolodczak posted:
I need to set up a link to a page based on a username. I need one link to be displayed if an employee logs in and different link to be displayed if an external user logs in. I am running IIS 5.0 and using NT authentication. What is the easiest way to do this? Thanks in advance.

Replies

Replied 11 Oct 2001 21:15:41
11 Oct 2001 21:15:41 Bobby Jenkins replied:
The easiest way I know, is to add a field in your users table (if you don't already have one) that distiguishes between the two user types "employee" and "external user." Assign a type for each user then download an awesome conditional extension here:

www.udzone.com/showDetail.asp?TypeId=3&NewsId=628

You can set conditions based on DB fields, scripts, session variables, etc.

Here's an example I use for calling two different links based on session variables.
(of course the "<%" are not present)

If (Session("svAccessRightsID") = (1) Then 'script
'Put link here'
End If ' end If (Session("svAccessRightsID") = (1) script
If (Session("svAccessRightsID") = (2) Then 'script
'Put second link here'
End If ' end If (Session("svAccessRightsID") = (2) script

Again, there are many ways to set up the condition in the conditional extension. Play around and have some fun!

Hope this helps.

Bobby

Reply to this topic