Classic ASP, syntax question - how to append session value into ASP code

Hi.

I believe that this is very simple - but not to me :)

I have a value within a session - and I have verified that the value IS in fact there (I did a response.write).

I have this very specific code that I want to append the session value into - but the syntax is buggin' me.

Below is the code.

<% ....... some code....
MM_editRedirectUrl = "uploadEditArticle.asp"
..... some code %>

How do I append the session value so that the sesion value can be stored as part of the redirect page?

The example should be something like this:


<% ....... some code....
MM_editRedirectUrl = "uploadEditArticle.asp?pkIntArticleID=session("IDartikel")"
..... some code %>

As you know this won't work as the syntax isn't correct. But my question is:

How can I make it work?
LVL 1
jensjakobsenAsked:
Who is Participating?
 
Big MontyConnect With a Mentor Senior Web Developer / CEO of ExchangeTree.org Commented:
sorry, extra quote there, should be:

MM_editRedirectUrl = "uploadEditArticle.asp?pkIntArticleID=" & session("IDartikel")
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
try this:

MM_editRedirectUrl = "uploadEditArticle.asp?pkIntArticleID=" & session("IDartikel")"
0
 
jensjakobsenAuthor Commented:
Dang that was simple :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.