Click here to Skip to main content
15,922,894 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Shopping Cart ID Pin
TheEagle8-Nov-06 9:10
TheEagle8-Nov-06 9:10 
QuestionSecurity Pin
DanB19838-Nov-06 7:23
DanB19838-Nov-06 7:23 
AnswerRe: Security Pin
ednrgc8-Nov-06 7:57
ednrgc8-Nov-06 7:57 
AnswerRe: Security Pin
Ramasubramaniam8-Nov-06 10:49
Ramasubramaniam8-Nov-06 10:49 
GeneralRe: Security Pin
Jim Franz8-Nov-06 12:30
Jim Franz8-Nov-06 12:30 
QuestionHow to install ASP.net application with MODI component Pin
easternsoldier8-Nov-06 5:45
easternsoldier8-Nov-06 5:45 
AnswerRe: How to install ASP.net application with MODI component Pin
ednrgc8-Nov-06 7:59
ednrgc8-Nov-06 7:59 
QuestionCan Asp.Net Page send audio stream content to Client from Page.Response? Pin
hectorpc20068-Nov-06 4:48
hectorpc20068-Nov-06 4:48 
On Button Postback an Aspx Page runs the following onclick C# event handler:

{
..
// dr[“Content”] - DataRow Item type byte[] where is a song in mp3 format
ar = dr[“Content”];
Response.ContentType=“audio/mpeg”;
Response.Clear();
Response.BufferOutput = true;
Response.BinaryWrite(ar);
Response.Flush();
}

I received error in Response.Flush() – The remote host closed the connection.(HttpException).

If I use Response.End() in place of Response.Flush() receive WMPlayer(on the Client) error about there is not codecs for playing sending stream. It possible that sending stream from ASP.Net Page is wrong because on client PC mp3 codecs are installed.

I try to use Response.WriteFile(filename) instead of Response.BinaryWrite(ar) and received the same errors.

Note : I see after Response.BinaryWrite(ar) line , in debugger, Response.OutputStream.Length property is showing a SystemNotSupportedException.

My question:

Can Asp.Net Page send audio to client as other binary content “application/pdf”,”image/gif”, i.e ?

Please help me,

Thanks

QuestionWhy Session_End event doesn’t fire ? Pin
hectorpc20068-Nov-06 4:42
hectorpc20068-Nov-06 4:42 
AnswerRe: Why Session_End event doesn’t fire ? Pin
indianet8-Nov-06 10:50
indianet8-Nov-06 10:50 
AnswerRe: Why Session_End event doesn’t fire ? Pin
Mircea Grelus8-Nov-06 11:11
Mircea Grelus8-Nov-06 11:11 
GeneralRe: Why Session_End event doesn’t fire ? Pin
Guffa8-Nov-06 12:36
Guffa8-Nov-06 12:36 
AnswerRe: Why Session_End event doesn’t fire ? Pin
ednrgc9-Nov-06 3:12
ednrgc9-Nov-06 3:12 
Questionhow to set cookies Pin
Sandeep Akhare8-Nov-06 4:33
Sandeep Akhare8-Nov-06 4:33 
QuestionHow to resolve "The security ID structure is invalid " Pin
Raghu Alluri8-Nov-06 4:12
Raghu Alluri8-Nov-06 4:12 
QuestionSorting GridView according an IP column Pin
3nbar, A7mad A8-Nov-06 3:49
3nbar, A7mad A8-Nov-06 3:49 
AnswerRe: Sorting GridView according an IP column Pin
indianet8-Nov-06 10:58
indianet8-Nov-06 10:58 
GeneralRe: Sorting GridView according an IP column Pin
3nbar, A7mad A8-Nov-06 21:30
3nbar, A7mad A8-Nov-06 21:30 
QuestionProblem implementing Http Handler Pin
King Shez8-Nov-06 3:48
King Shez8-Nov-06 3:48 
QuestionProblem implementing Http Handler Pin
King Shez8-Nov-06 3:48
King Shez8-Nov-06 3:48 
AnswerRe: Problem implementing Http Handler Pin
indianet8-Nov-06 10:47
indianet8-Nov-06 10:47 
GeneralRe: Problem implementing Http Handler Pin
King Shez8-Nov-06 22:27
King Shez8-Nov-06 22:27 
QuestionHow to debit a Credit Card? Pin
matthias s.8-Nov-06 2:55
matthias s.8-Nov-06 2:55 
AnswerRe: How to debit a Credit Card? Pin
darkelv8-Nov-06 3:35
darkelv8-Nov-06 3:35 
QuestionMasked Edit Control in ASP.Net Pin
aaraaayen8-Nov-06 2:38
aaraaayen8-Nov-06 2:38 

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.