From flash to asp

Posted on 2003-03-18
Medium Priority
Last Modified: 2010-04-03
I have several buttons with variables attached. like below

on (release) {
     varFilename = "test01.jpg";

In my HTML I have the javascript for my Launch window and it's working fine.

The problem is to pass the varFilename to the ASP page (pictures.asp) and the get the file to show the jpg-file and the rest of the pictures.asp page (a close-button and a head).

I use this code in my pictures.asp

<img src="../images/zipcode/<%=varFilename%>">

Why is it not working?

Please help
Question by:Jaxus
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

Accepted Solution

ocgstyles earned 600 total points
ID: 8164367
I think this is what you are asking for...  It looks like your zipcode is doing some processing, then it is supposed to pass the same value to another page for processing.....

I assume maybe you are using a response.redirect method to take you from zipcode.asp to pictures.asp.

if that is the case, try this:

in zipcode.asp:

varFilename = request.querystring("varFilename")
response.redirect "pictures.asp?varFilename=" & varFilename

then you can grab the variable in pictures using querystring container again:

varFilename = request.querystring("varFilename")

now you can use the variable for you image code:
<img src="../images/zipcode/<%=varFilename%>">

does that help?


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

752 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