Click here to Skip to main content
15,896,269 members
Home / Discussions / C#
   

C#

 
AnswerRe: Custom Bindable List Population Pin
JP_Rocks27-Mar-11 0:25
JP_Rocks27-Mar-11 0:25 
QuestionNew line with streamwriter [Solved] Pin
Pierre besquent16-Mar-11 4:45
Pierre besquent16-Mar-11 4:45 
AnswerRe: New line with streamwriter Pin
Luc Pattyn16-Mar-11 5:17
sitebuilderLuc Pattyn16-Mar-11 5:17 
GeneralRe: New line with streamwriter Pin
Pierre besquent16-Mar-11 6:04
Pierre besquent16-Mar-11 6:04 
AnswerRe: New line with streamwriter Pin
Luc Pattyn16-Mar-11 6:29
sitebuilderLuc Pattyn16-Mar-11 6:29 
AnswerRe: New line with streamwriter Pin
Groulien16-Mar-11 5:17
Groulien16-Mar-11 5:17 
GeneralRe: New line with streamwriter Pin
Pierre besquent16-Mar-11 6:03
Pierre besquent16-Mar-11 6:03 
AnswerRe: New line with streamwriter Pin
Paladin200016-Mar-11 6:31
Paladin200016-Mar-11 6:31 
GeneralRe: New line with streamwriter Pin
Luc Pattyn16-Mar-11 7:22
sitebuilderLuc Pattyn16-Mar-11 7:22 
GeneralRe: New line with streamwriter Pin
Paladin200016-Mar-11 8:26
Paladin200016-Mar-11 8:26 
GeneralRe: New line with streamwriter Pin
Luc Pattyn16-Mar-11 8:33
sitebuilderLuc Pattyn16-Mar-11 8:33 
GeneralRe: New line with streamwriter Pin
Paladin200016-Mar-11 8:45
Paladin200016-Mar-11 8:45 
GeneralRe: New line with streamwriter Pin
Luc Pattyn16-Mar-11 9:46
sitebuilderLuc Pattyn16-Mar-11 9:46 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 0:24
Pierre besquent17-Mar-11 0:24 
AnswerRe: New line with streamwriter Pin
Luc Pattyn17-Mar-11 4:35
sitebuilderLuc Pattyn17-Mar-11 4:35 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 6:00
Pierre besquent17-Mar-11 6:00 
GeneralRe: New line with streamwriter Pin
Luc Pattyn17-Mar-11 6:29
sitebuilderLuc Pattyn17-Mar-11 6:29 
AnswerRe: New line with streamwriter Pin
jschell16-Mar-11 8:27
jschell16-Mar-11 8:27 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 0:15
Pierre besquent17-Mar-11 0:15 
GeneralRe: New line with streamwriter Pin
jschell17-Mar-11 10:03
jschell17-Mar-11 10:03 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 23:11
Pierre besquent17-Mar-11 23:11 
AnswerRe: New line with streamwriter Pin
Pete O'Hanlon16-Mar-11 8:47
mvePete O'Hanlon16-Mar-11 8:47 
QuestionC# webpage playing a video from server hard drive Pin
twinscythe1233216-Mar-11 2:47
twinscythe1233216-Mar-11 2:47 
Hi Everyone,

I have created a placeholder that holds a windows media player object. ds is a DataSet that holds the video's location on the hard drive. here's the code:
PlaceHolder2.Controls.Add(new LiteralControl(
                    //adjust height here
                    " <OBJECT id=\"VIDEO\" width=\"640\" height=\"480\" " +
                    "CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" 	type=\"application/x-oleobject\">	" +
                    //put url here
                    "<PARAM NAME=\"URL\" VALUE=\"" + ds.Tables[0].Rows[0][0].ToString() + "\"> " +
                    "<PARAM NAME=\"SendPlayStateChangeEvents\" VALUE=\"True\"> <PARAM NAME=\"AutoStart\" VALUE=\"True\"> " +
                    " </OBJECT> "
             ));


Normally this would work fine, except I am trying to access a file that is outside the IIS and on a seperate hard drive, so currently an example of the "url" would be "D:\videos\camping.wmv"
The client won't be able to take this because it'll try to locate the file on the client's machine.
What I'd like to know is if it is possible to reference a video file outside of the website folder, and how to do that.

Regards,

Brad
AnswerRe: C# webpage playing a video from server hard drive Pin
twinscythe1233216-Mar-11 3:15
twinscythe1233216-Mar-11 3:15 
GeneralRe: C# webpage playing a video from server hard drive Pin
Dan Mos16-Mar-11 5:47
Dan Mos16-Mar-11 5:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.