May 31, 2005 #1 jloffredo Technical User Joined Feb 24, 2002 Messages 17 Location US How do I pass a value to a session variable when a link is clicked?
May 31, 2005 #2 Sheco Programmer Joined Jan 3, 2005 Messages 5,457 Location US You could embed the value that you wish to set into the QueryString of your link. On first page: <a href="http://www.mydomain.com/mypage.asp[highlight]?MyValue=Fred[/highlight]">Click here</a> On second page: Session("MySessionVar") = Request.QueryString("MyValue") Upvote 0 Downvote
You could embed the value that you wish to set into the QueryString of your link. On first page: <a href="http://www.mydomain.com/mypage.asp[highlight]?MyValue=Fred[/highlight]">Click here</a> On second page: Session("MySessionVar") = Request.QueryString("MyValue")
May 31, 2005 Thread starter #3 jloffredo Technical User Joined Feb 24, 2002 Messages 17 Location US Thanks!!! Upvote 0 Downvote