Forums
This topic is locked
Session in the URL
Posted 27 Aug 2002 18:01:19
1
has voted
27 Aug 2002 18:01:19 Saeed Abdi posted:
I'm trying to pass the ID of last created record to another page using a session in the URL, but I keep getting this error msg (Expected end of statement)MM_editRedirectUrl = "/Ripe/confirm.asp?" + <%= Session("LastIdent" %>
Can you please tell me where I'm going wrong?
Your help is always appreciated
Thanks in advance
Replies
Replied 28 Aug 2002 09:39:39
28 Aug 2002 09:39:39 Vince Baker replied:
I think you have an = missing..
try:
MM_editRedirectUrl = "/Ripe/confirm.asp?=" + <%= Session("LastIdent" %>
<% Response.write(The best line of code you can ever use"%>
Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
try:
MM_editRedirectUrl = "/Ripe/confirm.asp?=" + <%= Session("LastIdent" %>
<% Response.write(The best line of code you can ever use"%>
Vince
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 28 Aug 2002 11:24:56
28 Aug 2002 11:24:56 Viktor Farcic replied:
<pre id=code><font face=courier size=2 id=code>MM_editRedirectUrl = "/Ripe/confirm.asp?LastIdent=" + Session("LastIdent"</font id=code></pre id=code>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm trying to pass the ID of last created record to another page using a session in the URL, but I keep getting this error msg (Expected end of statement)
MM_editRedirectUrl = "/Ripe/confirm.asp?" + <%= Session("LastIdent" %>
Can you please tell me where I'm going wrong?
Your help is always appreciated
Thanks in advance
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
www.farcic.com
TalkZone Manager
Edited by - vfarcic on 28 Aug 2002 11:35:49
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm trying to pass the ID of last created record to another page using a session in the URL, but I keep getting this error msg (Expected end of statement)
MM_editRedirectUrl = "/Ripe/confirm.asp?" + <%= Session("LastIdent" %>
Can you please tell me where I'm going wrong?
Your help is always appreciated
Thanks in advance
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
www.farcic.com
TalkZone Manager
Edited by - vfarcic on 28 Aug 2002 11:35:49
Replied 28 Aug 2002 11:53:49
28 Aug 2002 11:53:49 Saeed Abdi replied:
Thanks
I finally sorted it out by passing a query that uses a session that has the ID of the last record created and that seems to be working quite fine, Thanks again
<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
I finally sorted it out by passing a query that uses a session that has the ID of the last record created and that seems to be working quite fine, Thanks again
<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>