Forums

This topic is locked

javascript to vbscript - again

Posted 11 Sep 2002 18:04:04
1
has voted
11 Sep 2002 18:04:04 Dave Clarke posted:
ok guys, this code on a asp/javascript page works fine, session variable is set and recordset filtered by it is created on new page.

<b>&lt;script language=vbscript runat=server&gt;
' *** Set Session Var To Value of form element
Session("newlook" = cStr(Request("lookingfor")
&lt;/script&gt;</b>

this code on asp/vbscript page does not work

<b>&lt;%
' *** Set Session Var To Value Of Form Element
Session("newlook" = cStr(Request("lookingfor")
%&gt;</b>

then on the redirect page (after submit of form and insert of record) the recordset is created from this

<b>SELECT *
FROM Messages
WHERE Category &lt;&gt;'DELETED' AND WhoAreYouLookingFor LIKE '%MMColParam%'
ORDER BY WhoAreYouLookingFor ASC</b>

MMColParam default value = "zzzxxx" , runtime value = Session("newlook"

anybody any ideas??

Replies

Replied 11 Sep 2002 19:21:59
11 Sep 2002 19:21:59 Dave Clarke replied:
Sorted, it was the position of the
&lt;%
' *** Set Session Var To Value Of Form Element
Session("newlook" = cStr(Request("lookingfor")
%&gt;

code on the page, i've moved it and it's working fine.

Reply to this topic