Forums

ASP

This topic is locked

set session variable and redirect

Posted 03 Mar 2001 12:51:47
1
has voted
03 Mar 2001 12:51:47 Leon Radley posted:
I have a menu that is built by getting data from a database, and repeat
region

the menu works by setting a session variable to the menu I want to see and
then quering the database for the session variable

my problem is that on a press of a link in the repeat region, first set a
session variable to be a record from the database, and then
response.redirect to a page wich link also is in the database, and the
problem is that it's repeat region

something like this ( not good at the handcoding yet..hehe)

goto(menu,location) = Session("menuID" = menu& Response.redirect location

and the link

href="<%=goto("RsMenu.Fields.Item("menuID".Value",("RsMenu.Fields.Item("udermenuIDlink".Value"%>"


Any suggestions would be good

Cheers
Leon


// Leon

Reply to this topic