Click here to Skip to main content
15,891,904 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Image Upload in specific location Pin
Ravi_2126-Nov-07 18:59
Ravi_2126-Nov-07 18:59 
GeneralRe: Image Upload in specific location Pin
_AK_26-Nov-07 19:04
_AK_26-Nov-07 19:04 
AnswerRe: Image Upload in specific location Pin
_AK_26-Nov-07 19:10
_AK_26-Nov-07 19:10 
Questiondata driven hierarchial role security based navigation. Pin
uglyeyes26-Nov-07 18:25
uglyeyes26-Nov-07 18:25 
AnswerRe: data driven hierarchial role security based navigation. Pin
uglyeyes27-Nov-07 14:01
uglyeyes27-Nov-07 14:01 
Questionhow to make a textbox to react to each keystroke? Pin
sayonifahim26-Nov-07 18:25
sayonifahim26-Nov-07 18:25 
AnswerRe: how to make a textbox to react to each keystroke? Pin
Sherin Iranimose26-Nov-07 18:48
Sherin Iranimose26-Nov-07 18:48 
QuestionPlay music in web page Pin
steve_rm26-Nov-07 17:44
steve_rm26-Nov-07 17:44 
Hello,

The customer wants to download a music file for a path that is on the server, then play that in the web form. So it will be like having window media player embedded in the web form itself.

I have the code for downloading and playing. However, a dialog will popup and when they click open it will play the music. However, the customer doesn't like this and want to play the music in a player that is in the web page itself.

Here is my code so far for downloading and playing the music.

Many thanks

<br />
 Try<br />
            Dim fs As FileStream = Nothing<br />
            Dim contentType As String = String.Empty<br />
            'Dim path As String = "\\10.10.10.31\Inetpub\wwwroot\csone\images\Content\"<br />
            'Dim fileName As String = "Voice.mp3"<br />
            Dim path As String = "C:\DownloadPicture\"<br />
            Dim fileName As String = "Beethoven.wma"<br />
<br />
<br />
            fs = File.Open(path & fileName, FileMode.Open)<br />
            Dim fileBytes(fs.Length) As Byte<br />
<br />
            fs.Read(fileBytes, 0, fs.Length)<br />
            fs.Close()<br />
<br />
            Response.AddHeader("Content-disposition", "attachment; filename=" & fileName)<br />
            Response.ContentType = "application/octet-stream"<br />
            Response.BinaryWrite(fileBytes)<br />
            HttpContext.Current.ApplicationInstance.CompleteRequest()<br />
<br />
        Catch ex As Exception<br />
            MsgBox(ex.Message)<br />
        End Try

AnswerRe: Play music in web page Pin
Sun Rays26-Nov-07 18:42
Sun Rays26-Nov-07 18:42 
AnswerRe: Play music in web page Pin
Vasudevan Deepak Kumar26-Nov-07 20:37
Vasudevan Deepak Kumar26-Nov-07 20:37 
QuestionWebconfig session state settings..., [modified] Pin
Member 387988126-Nov-07 17:02
Member 387988126-Nov-07 17:02 
QuestionAsp.net 2.0 Menu Control Pin
Lijo Rajan26-Nov-07 16:58
Lijo Rajan26-Nov-07 16:58 
Questionmodify xml using freetextbox Pin
srinivas43126-Nov-07 16:38
srinivas43126-Nov-07 16:38 
QuestionHelp Pin
cisco210326-Nov-07 15:12
cisco210326-Nov-07 15:12 
AnswerRe: Help Pin
Sherin Iranimose26-Nov-07 17:48
Sherin Iranimose26-Nov-07 17:48 
Questionproblems casting an object to a listbox Pin
foobarDividedByZero26-Nov-07 11:28
foobarDividedByZero26-Nov-07 11:28 
QuestionLoop Through Database Pin
kenexcelon26-Nov-07 9:07
kenexcelon26-Nov-07 9:07 
AnswerRe: Loop Through Database Pin
kenexcelon26-Nov-07 9:51
kenexcelon26-Nov-07 9:51 
GeneralRe: Loop Through Database Pin
John-ph26-Nov-07 20:52
John-ph26-Nov-07 20:52 
QuestionAJAX install question Pin
amatbrewer26-Nov-07 8:11
amatbrewer26-Nov-07 8:11 
AnswerRe: AJAX install question Pin
amatbrewer26-Nov-07 9:39
amatbrewer26-Nov-07 9:39 
QuestionHandling web service exceptions Pin
dubbele onzin26-Nov-07 6:42
dubbele onzin26-Nov-07 6:42 
QuestionUsing Session Variable in Javascript Method. Pin
M_Menon26-Nov-07 5:55
M_Menon26-Nov-07 5:55 
AnswerRe: Using Session Variable in Javascript Method. Pin
SABhatti26-Nov-07 6:10
SABhatti26-Nov-07 6:10 
GeneralRe: Using Session Variable in Javascript Method. Pin
M_Menon26-Nov-07 7:00
M_Menon26-Nov-07 7:00 

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.