PDA

View Full Version : Session Variable in ASP


werecat321138
12-06-2009, 10:26 AM
I have created a CMS using an Access database with update forms to generate the content and then Dynamic pages with rs Call to's to display the content. I have it set up so that each author has an ID along with content areas with their database profile. I set the initial URL to display http://www.sitename.org/clubsite/clubhome.asp?ID=10

How do I set it up so that when I click on the other links such as clubinfo.asp, clubnews.asp, and clubcontact.asp that it remembers the ID number? Is this possible?

Jason Byrnes
12-07-2009, 11:29 AM
an easy way to accomplish this is to set the links to capture the existing variable:
<a href="clubinfo.asp?ID=<%=Request.QueryString("ID")%>">Club Info</a>

werecat321138
12-17-2009, 11:45 AM
Hi Jason,
Thank you for your reply. That worked fine. I greatly appreciate your assistance.