• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

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?
0
jensjakobsen
Asked:
jensjakobsen
  • 2
1 Solution
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
try this:

MM_editRedirectUrl = "uploadEditArticle.asp?pkIntArticleID=" & session("IDartikel")"
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
sorry, extra quote there, should be:

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

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now