path problem

Discussion in 'ASP .Net' started by Jeff, Mar 17, 2009.

  1. Jeff

    Jeff Guest

    hi

    asp.net 2.0

    Here is some flash markup I want to have inside the webpage.

    <object width="960" height="108">
    <param id="Param1" name="movie" value="../Flash/test.swf" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="../Flash/test.swf" />
    <embed src="Flash/test.swf" width="960" height="108"></embed>
    </object>

    This markup doesn't display the flash movie. the flash movie is located in
    ~\Flash\ folder.. the page accessing it is locating in ~\Pages\ folder.

    root folder
    + Flash folder (contains flash movie)
    + Pages folder (contain problem aspx page)

    any suggestions? what path should I use?
     
    Jeff, Mar 17, 2009
    #1
    1. Advertising

  2. Jeff

    Jeff Guest

    I've just manage to solve it using:
    <embed src="../Flash/test.swf" width="960" height="108"></embed>


    "Jeff" <> wrote in message
    news:%...
    > hi
    >
    > asp.net 2.0
    >
    > Here is some flash markup I want to have inside the webpage.
    >
    > <object width="960" height="108">
    > <param id="Param1" name="movie" value="../Flash/test.swf" />
    > <param name="allowScriptAccess" value="sameDomain" />
    > <param name="allowFullScreen" value="false" />
    > <param name="movie" value="../Flash/test.swf" />
    > <embed src="Flash/test.swf" width="960" height="108"></embed>
    > </object>
    >
    > This markup doesn't display the flash movie. the flash movie is located in
    > ~\Flash\ folder.. the page accessing it is locating in ~\Pages\ folder.
    >
    > root folder
    > + Flash folder (contains flash movie)
    > + Pages folder (contain problem aspx page)
    >
    > any suggestions? what path should I use?
    >
     
    Jeff, Mar 17, 2009
    #2
    1. Advertising

  3. On Mar 17, 2:50 pm, "Jeff" <> wrote:
    > I've just manage to solve it using:
    > <embed src="../Flash/test.swf" width="960" height="108"></embed>
    >
    > "Jeff" <> wrote in message
    >
    > news:%...
    >
    > > hi

    >
    > > asp.net 2.0

    >
    > > Here is some flash markup I want to have inside the webpage.

    >
    > > <object width="960" height="108">
    > >        <param id="Param1" name="movie" value="../Flash/test.swf" />
    > >        <param name="allowScriptAccess" value="sameDomain" />
    > >        <param name="allowFullScreen" value="false" />
    > >        <param name="movie" value="../Flash/test.swf" />
    > >        <embed src="Flash/test.swf" width="960" height="108"></embed>
    > > </object>

    >
    > > This markup doesn't display the flash movie. the flash movie is located in
    > > ~\Flash\ folder.. the page accessing it is locating in ~\Pages\ folder.

    >
    > > root folder
    > > + Flash folder (contains flash movie)
    > > + Pages folder (contain problem aspx page)

    >
    > > any suggestions? what path should I use?


    Be aware that .. (parent paths) are not enabled by default starting
    from IIS 6 and this code may not work on the server where parent paths
    are disabled.
     
    Alexey Smirnov, Mar 17, 2009
    #3
  4. Jeff

    Jeff Guest

    what should I do instead of using .. ?


    "Alexey Smirnov" <> wrote in message
    news:...
    On Mar 17, 2:50 pm, "Jeff" <> wrote:
    > I've just manage to solve it using:
    > <embed src="../Flash/test.swf" width="960" height="108"></embed>
    >
    > "Jeff" <> wrote in message
    >
    > news:%...
    >
    > > hi

    >
    > > asp.net 2.0

    >
    > > Here is some flash markup I want to have inside the webpage.

    >
    > > <object width="960" height="108">
    > > <param id="Param1" name="movie" value="../Flash/test.swf" />
    > > <param name="allowScriptAccess" value="sameDomain" />
    > > <param name="allowFullScreen" value="false" />
    > > <param name="movie" value="../Flash/test.swf" />
    > > <embed src="Flash/test.swf" width="960" height="108"></embed>
    > > </object>

    >
    > > This markup doesn't display the flash movie. the flash movie is located
    > > in
    > > ~\Flash\ folder.. the page accessing it is locating in ~\Pages\ folder.

    >
    > > root folder
    > > + Flash folder (contains flash movie)
    > > + Pages folder (contain problem aspx page)

    >
    > > any suggestions? what path should I use?


    Be aware that .. (parent paths) are not enabled by default starting
    from IIS 6 and this code may not work on the server where parent paths
    are disabled.
     
    Jeff, Mar 17, 2009
    #4
  5. On Mar 17, 5:46 pm, "Jeff" <> wrote:
    > what should I do instead of using .. ?
    >


    You can put your swf file in the same directory where your asp.net
    form is located and use value="Flash/test.swf", or you can use full
    path started from the root, for example, if ~\Flash\ folder is
    http://site/Flash/ then value can be value="/Flash/test.swf" (with a
    slash). Hope this helps
     
    Alexey Smirnov, Mar 18, 2009
    #5
  6. Alexey Smirnov wrote:
    > Be aware that .. (parent paths) are not enabled by default starting
    > from IIS 6 and this code may not work on the server where parent paths
    > are disabled.


    That applies just to ASP; from the help about enabling parent paths:
    "Select to allow ASP pages to use relative paths to the parent directory of
    the current directory (paths using the .. syntax)."

    More:
    http://support.microsoft.com/kb/332117

    Andrew
     
    Andrew Morton, Mar 18, 2009
    #6
  7. On Mar 18, 9:53 am, "Andrew Morton" <>
    wrote:
    > Alexey Smirnov wrote:
    > > Be aware that .. (parent paths) are not enabled by default starting
    > > from IIS 6 and this code may not work on the server where parent paths
    > > are disabled.

    >
    > That applies just to ASP; from the help about enabling parent paths:
    > "Select to allow ASP pages to use relative paths to the parent directory of
    > the current directory (paths using the .. syntax)."
    >
    > More:http://support.microsoft.com/kb/332117
    >
    > Andrew


    Ah, you're right! I forgot it's just because of execute rights
    there... Thank you for pointing it out.
     
    Alexey Smirnov, Mar 18, 2009
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keith-Earl
    Replies:
    1
    Views:
    1,976
    Peter O'Reilly
    May 3, 2004
  2. Replies:
    0
    Views:
    2,249
  3. Mupota Muchelemba
    Replies:
    1
    Views:
    917
    Tony Morris
    Feb 4, 2004
  4. Replies:
    3
    Views:
    402
  5. R. Sherwin Kartick

    embedded perl path $ENV{PATH} problem

    R. Sherwin Kartick, Sep 22, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    188
    R. Sherwin Kartick
    Sep 22, 2004
Loading...

Share This Page