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 3221422
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:52:27+00:00 2026-05-17T15:52:27+00:00

My client request a flash header for his website. I’m using asp.net and a

  • 0

My client request a flash header for his website. I’m using asp.net and a master page (where the code for the flash header is). My problem is that whenever I go to a page that’s not in the website’s root, the flash doesn’t appear. I’ve had the same issue with pure css menus on this site…

Here’s the code:

    <div id="header">
        <!--[if !IE]> -->
        <object type="application/x-shockwave-flash"
          data="App_Themes/Default/banner1.swf" width="1000" height="400">
        <!-- <![endif]-->

        <!--[if IE]>
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
          codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
          width="1000" height="400">
          <param name="movie" value="App_Themes/Default/banner1.swf" />
          <embed src="App_Themes/Default/banner1.swf" width="1000" height="400"></embed>
        <!--><!--dgx-->
          <param name="loop" value="true" />
          <param name="menu" value="false" />

          <p></p>
        </object>
        <!-- <![endif]-->
    </div>

As you can see, I’m not calling the path to the flash object relative to the website root (in case this isn’t clear… if it were an asp.net control, I’d use ~/App_Themes/Default/banner1.swf")

The flash object is being loaded relative to the location of the current page that’s being viewed on the website. Assuming an indeterminate folder depth from root, how can I change the code to load the flash relative to the root, rather than the current page?

I have considered changing the path that’s being used by perpending / or ~/ to it, but this only results in the flash not loading on any page at all.
Looking at the source code, the server modifies /App_Themes/Default/banner1.swf to ~/App_Themes/Default/banner1.swf

  • 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-17T15:52:28+00:00Added an answer on May 17, 2026 at 3:52 pm

    Sticking a ~/ in a plain URL won’t work. Try using this:

    <object type="application/x-shockwave-flash"
        data="<%=ResolveUrl('~/App_Themes/Default/banner1.swf')%>"
        width="1000" height="400">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when using http post with flash that send ip address request from client computer
I have a client request that all times be displayed in Pacific Time Zone,
Per a client's request I have written a communication class that inherits from webclient.
My request is that a client wants to put in a date range (typically
This is code I'm using to test a webserver on an embedded product that
We have a site hosted in IIS6 that we built using the .NET 1.1
I'm now have a request to detect flash player version in client and if
I'm try to send and get data using sockets between Adobe flash client and
I want to tell a java client request not to care about the remote
Should I provide these things by default or only on client request (if they

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.