Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7092827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:21:47+00:00 2026-05-28T08:21:47+00:00

I have an asp file that stores some values that are then used on

  • 0

I have an asp file that stores some values that are then used on an included template file. Like this:

dim mediaSrc()

ReDim mediaSrc(2)
mediaSrc(0) = "http://server.com/path/to/file.mp3"
mediaSrc(1) = "http://server.com/path/to/file.mp3"
mediaSrc(2) = "http://server.com/path/to/file.mp3"

<!--#include virtual="/path/to/include.asp" -->

I have a second asp file in which I want to include information from several of these first files. So I might have something like:

dim fileSrc()

ReDim fileSrc(2)
fileSrc(0) = "http://server.com/path/to/firstfile.asp"
fileSrc(1) = "http://server.com/path/to/secondfile.asp"
fileSrc(2) = "http://server.com/path/to/finalfile.asp"

Can I, in that second asp file, get a reference to the variables set in the first asp files?

I’d like to do something like:

fileSrc(0).mediaSrc(0)

to get the URL specified in the first asp file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:21:48+00:00Added an answer on May 28, 2026 at 8:21 am

    You’d need to load the page using the filesystem as a text stream, then parse the page text yourself. Classic ASP pages are not objects, so fileSrc(0).mediaSrc(0) will not work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net mvc action that returns a file result. Behind the scenes,
I have an ASP.NET application that uses a custom .NET library (a .DLL file).
I have a ASP.NET MVC3 application that handles time-consuming processes (copying a large file
I want to upload 30GB with asp.net file upload control, i have heard that
I have a website that uses basic ASP.Net forms authentication. In the web.config file
I have an ASP.NET user control (.ascx file). In this user control I want
I have an upload that stores images to a SQL 2008 from an ASP.NET
I have an ASP.NET MVC application that produces a PDF file when calling an
I have a large HTML file (In ASP.NET) that has several smaller ... tags
Is there a way to have ASP classic cdonts email, have an file attached

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.