This topic is locked

Loosing Session Variable on list page

5/28/2009 11:17:39 PM
ASPRunnerPro General questions
H
huffharper author

I am using list page: before process to assign a session variable via query string.
http://www.myweb.com/CreateEvents_list.asp?myProjectID=893

session("myProjectID")=request("myProjectID")
I then use the before delete function (delete=false) to add records into another table.
dal.Events.EventProjectID=session("myProjectID")
Works properly if I select records and "delete" them, however if I sort or filter the recordset prior to the delete process I lose session("myProjectID")
Help?

J
Jane 5/29/2009

Hi,
please make sure you have check request("myProjectID") in your code before:

if request("myProjectID")<>"" then

session("myProjectID")=request("myProjectID")

end if

H
huffharper author 5/29/2009

Hi,

please make sure you have check request("myProjectID") in your code before:


That was it. Thanks