G
Guest
Im working with VS 2005 and trying to use a Hyperlink field in a datagrid to
play a wave file that is not located in the website folders but is in a plain
folder on the same machine, windows 2003 server, WMP 10.0 .
If I type the full path in an IE address field it plays the file in WMP
When I test my Web page ( running the debugger in VS.)
The datagrid has a column called "MsgFile" with the full path to the wave
file e.g. c:\pf\app\audio\3\19.wav. Another Hyperlink column in the grid
has DataNavigateURLFields pointing to the MsgFile field and that works.
But for the hyperlink's DataNavigateURLFormatString I've tried:
1. {0} - which results in the ':' from the path being removed and converts
backslash to forward slash (c/pf/app/audio/3/19.wav) and hence file not found
error.
2. http://{0} - also removes the ':' from the path and hence file not found
error.
3. http://localhost/{0} - leaves the ':' in the path to result in what I
believe is the correct URL http://localhost/c:/pf/app/audio/3/19.wav but
results in Page Not Found.
Hopefully it is possible to play a wave file that is not in the website
folder.
The simple question is what format string needed in the
DataNavigateURLFormatString to get the file to play?
Any assistance is appreciated.
play a wave file that is not located in the website folders but is in a plain
folder on the same machine, windows 2003 server, WMP 10.0 .
If I type the full path in an IE address field it plays the file in WMP
When I test my Web page ( running the debugger in VS.)
The datagrid has a column called "MsgFile" with the full path to the wave
file e.g. c:\pf\app\audio\3\19.wav. Another Hyperlink column in the grid
has DataNavigateURLFields pointing to the MsgFile field and that works.
But for the hyperlink's DataNavigateURLFormatString I've tried:
1. {0} - which results in the ':' from the path being removed and converts
backslash to forward slash (c/pf/app/audio/3/19.wav) and hence file not found
error.
2. http://{0} - also removes the ':' from the path and hence file not found
error.
3. http://localhost/{0} - leaves the ':' in the path to result in what I
believe is the correct URL http://localhost/c:/pf/app/audio/3/19.wav but
results in Page Not Found.
Hopefully it is possible to play a wave file that is not in the website
folder.
The simple question is what format string needed in the
DataNavigateURLFormatString to get the file to play?
Any assistance is appreciated.