?
Solved

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

Posted on 2011-09-27
3
Medium Priority
?
397 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 33

Expert Comment

by:Big Monty
ID: 36711407
try this:

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

Accepted Solution

by:
Big Monty earned 2000 total points
ID: 36711412
sorry, extra quote there, should be:

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

Author Closing Comment

by:jensjakobsen
ID: 36711734
Dang that was simple :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

801 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