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><script language=vbscript runat=server>
' *** Set Session Var To Value of form element
Session("newlook"


</script></b>
this code on asp/vbscript page does not work
<b><%
' *** Set Session Var To Value Of Form Element
Session("newlook"


%></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 <>'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
<%
' *** Set Session Var To Value Of Form Element
Session("newlook"
= cStr(Request("lookingfor"
)
%>
code on the page, i've moved it and it's working fine.
<%
' *** Set Session Var To Value Of Form Element
Session("newlook"


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