Solved

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

Posted on 2011-09-27
3
390 Views
Last Modified: 2012-05-12
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
Comment
Question by:jensjakobsen
  • 2
3 Comments
 
LVL 32

Expert Comment

by:Big Monty
Comment Utility
try this:

MM_editRedirectUrl = "uploadEditArticle.asp?pkIntArticleID=" & session("IDartikel")"
0
 
LVL 32

Accepted Solution

by:
Big Monty earned 500 total points
Comment Utility
sorry, extra quote there, should be:

MM_editRedirectUrl = "uploadEditArticle.asp?pkIntArticleID=" & session("IDartikel")
0
 
LVL 1

Author Closing Comment

by:jensjakobsen
Comment Utility
Dang that was simple :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now