Using Visual Interdev for my ASP pages I have a recordset that uses a SQL string that returns a single column recordset for a dropdown box from Oracle 8i.
First I have captured the Session(LoginID"
from a prior page,
Then in the Page onBeforeOpen I have it assigned to a variable ..
+++++++++++++++++++++++++++++++++++++++++++++++
<SCRIPT ID=serverEventHandlersVBS Language=vbscript RUNAT=SERVER>
dim usrLoginID
SUB usrStartFrm_onenter()
usrLoginID = Session("LoginID"
End SUB
</SCRIPT>
+++++++++++++++++++++++++++++++++++++++++++++++++
Then the REcorsdet loads using the following raw SQL statement
-------------------------------------------------
SELECT DISTINCT
L.LOGINID,
B.BUSINESSSEGMENTNAME
FROM
SODA.ASSIGNMENTS_TB A,
SODA.LOGINS_TB L,
SODA.BUSSEGMENT_TB B
WHERE
A.FK_LOGIN_NO = L.LOGIN_NO
AND
A.FK_BUSSEGID = B.BUSSEGID
+++++++++
Here is the Problem.....
AND (L.LOGINID = '" & Session("LoginID"
"')
I can't get the syntax for Oracle to work.
If I use AND (L.LOGINID = 'bjones')
a literal then it works
But I cant pass either the actual session variable or a locally created variable.
I know the variable is there because it writes to the page when I response write it.
Could it be a timing issue ?
Any thought would be helpful
First I have captured the Session(LoginID"
Then in the Page onBeforeOpen I have it assigned to a variable ..
+++++++++++++++++++++++++++++++++++++++++++++++
<SCRIPT ID=serverEventHandlersVBS Language=vbscript RUNAT=SERVER>
dim usrLoginID
SUB usrStartFrm_onenter()
usrLoginID = Session("LoginID"
End SUB
</SCRIPT>
+++++++++++++++++++++++++++++++++++++++++++++++++
Then the REcorsdet loads using the following raw SQL statement
-------------------------------------------------
SELECT DISTINCT
L.LOGINID,
B.BUSINESSSEGMENTNAME
FROM
SODA.ASSIGNMENTS_TB A,
SODA.LOGINS_TB L,
SODA.BUSSEGMENT_TB B
WHERE
A.FK_LOGIN_NO = L.LOGIN_NO
AND
A.FK_BUSSEGID = B.BUSSEGID
+++++++++
Here is the Problem.....
AND (L.LOGINID = '" & Session("LoginID"
I can't get the syntax for Oracle to work.
If I use AND (L.LOGINID = 'bjones')
a literal then it works
But I cant pass either the actual session variable or a locally created variable.
I know the variable is there because it writes to the page when I response write it.
Could it be a timing issue ?
Any thought would be helpful