Pointer within Session variable
Sorry if this is out of category, but it has been posted for 3 days without response elsewhere...looking for some help.
2 Related Questions:
Can I set a Session variable in conjunction with a hyperlink. I want to pick one of 8 schedules using a hyperlink. Each of the hyperlinks will call the same display page, but the hyperlink needs to set the session variable so I know which of the schedules to display. I am brute forcing it now by calling 1 of 8 pages that only set the session variable and then that page calls the schedule page. I am sure there must be a better way.
Once I get that session variable, I need to check another session variable for yes/no condition bases on the variable set above. Example:
From the first page, I select 1 of 8 hyperlinks. The hyperlink chosen sets the Session("ScheduleCategory") variable to one of 8 values (Acolyte, AltarGuild, Usher, Nursery, Lector, etc.). On the schedule page, I need to see if the user is a designated administrator for that particular schedule. I do that by looking at the Session variables set when the user logs in. So the passed parameter is in:
Session("ScheduleCategory") with values: Acolyte, AltarGuild, Usher, Nursery, etc
Comparison to:
Session("AcolyteAdmin") with values true/false
Session("AltarGuildAdmin") with values true/false
Session("UsherAdmin") with values true/false
Session("NurseryAdmin") with values true/false
Session("LectorAdmin") with values true/false
Etc.
So on the schedule page I need to look at the value of:
Session("xxxxAdmin")
How do I substitute the value of Session("ScheduleCategory") for the xxxx above and concatenate it with the word Admin?
__________________
Ego is a faithful friend; He stays with us all the way to the crater.
|