Link to home
Start Free TrialLog in
Avatar of jensjakobsen
jensjakobsenFlag for Denmark

asked on

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?
Avatar of Big Monty
Big Monty
Flag of United States of America image

try this:

MM_editRedirectUrl = "uploadEditArticle.asp?pkIntArticleID=" & session("IDartikel")"
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jensjakobsen

ASKER

Dang that was simple :)