Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > path problem

Reply
Thread Tools

path problem

 
 
Jeff
Guest
Posts: n/a
 
      03-17-2009
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?


 
Reply With Quote
 
 
 
 
Jeff
Guest
Posts: n/a
 
      03-17-2009
I've just manage to solve it using:
<embed src="../Flash/test.swf" width="960" height="108"></embed>


"Jeff" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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?
>



 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      03-17-2009
On Mar 17, 2:50*pm, "Jeff" <(E-Mail Removed)> wrote:
> I've just manage to solve it using:
> <embed src="../Flash/test.swf" width="960" height="108"></embed>
>
> "Jeff" <(E-Mail Removed)> wrote in message
>
> news:%(E-Mail Removed)...
>
> > 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.
 
Reply With Quote
 
Jeff
Guest
Posts: n/a
 
      03-17-2009
what should I do instead of using .. ?


"Alexey Smirnov" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
On Mar 17, 2:50 pm, "Jeff" <(E-Mail Removed)> wrote:
> I've just manage to solve it using:
> <embed src="../Flash/test.swf" width="960" height="108"></embed>
>
> "Jeff" <(E-Mail Removed)> wrote in message
>
> news:%(E-Mail Removed)...
>
> > 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.


 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      03-18-2009
On Mar 17, 5:46*pm, "Jeff" <(E-Mail Removed)> 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
 
Reply With Quote
 
Andrew Morton
Guest
Posts: n/a
 
      03-18-2009
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


 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      03-18-2009
On Mar 18, 9:53*am, "Andrew Morton" <(E-Mail Removed)>
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server.MapPath() croaking with "failed to map path", but path is legal awbacker@gmail.com ASP .Net 0 05-12-2005 10:50 PM
embedded perl path $ENV{PATH} problem R. Sherwin Kartick Perl Misc 0 09-22-2004 10:29 PM
Bizzare: Invalid path to Access mdb, path is good Keith-Earl ASP .Net 1 05-03-2004 03:25 PM
problem in appending a path to sys.path ketulp_baroda@yahoo.com Python 3 02-26-2004 06:03 AM
Tomcat returning 404 error when using additional path (/servlet/myServlet/extra/path/info) Mupota Muchelemba Java 1 02-04-2004 12:43 AM



Advertisments