Click here to Skip to main content
15,892,537 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionLoginStatus Dynamic Visiblity not working Pin
Albert8314-Jan-09 7:58
Albert8314-Jan-09 7:58 
AnswerRe: LoginStatus Dynamic Visiblity not working Pin
saberbladez14-Jan-09 17:25
saberbladez14-Jan-09 17:25 
QuestionsqlConnection object Sql Server setup Pin
dwolver14-Jan-09 7:13
dwolver14-Jan-09 7:13 
AnswerRe: sqlConnection object Sql Server setup Pin
ToddHileHoffer14-Jan-09 7:24
ToddHileHoffer14-Jan-09 7:24 
Questionhow to View text file Pin
netJP12L14-Jan-09 6:15
netJP12L14-Jan-09 6:15 
AnswerRe: how to View text file Pin
ToddHileHoffer14-Jan-09 7:11
ToddHileHoffer14-Jan-09 7:11 
GeneralRe: how to View text file Pin
netJP12L14-Jan-09 7:30
netJP12L14-Jan-09 7:30 
GeneralRe: how to View text file Pin
ToddHileHoffer14-Jan-09 7:44
ToddHileHoffer14-Jan-09 7:44 
That should be easy enough. Where is the file coming from?


you need to add the content type to the page that will display the file depending on the file for example

switch ( fileExtension )
{
case "pdf": Response.ContentType = "application/pdf"; break;
case "swf": Response.ContentType = "application/x-shockwave-flash"; break;

case "gif": Response.ContentType = "image/gif"; break;
case "jpeg": Response.ContentType = "image/jpg"; break;
case "jpg": Response.ContentType = "image/jpg"; break;
case "png": Response.ContentType = "image/png"; break;

case "mp4": Response.ContentType = "video/mp4"; break;
case "mpeg": Response.ContentType = "video/mpeg"; break;
case "mov": Response.ContentType = "video/quicktime"; break;
case "wmv":
case "avi": Response.ContentType = "video/x-ms-wmv"; break;

//and so on

default: Response.ContentType = "application/octet-stream"; break;
}

Response.BinaryWrite(btyeArrayOfFile);


I didn't get any requirements for the signature


GeneralRe: how to View text file Pin
N a v a n e e t h14-Jan-09 15:59
N a v a n e e t h14-Jan-09 15:59 
AnswerRe: how to View text file Pin
MitchellBaldwin14-Jan-09 7:18
MitchellBaldwin14-Jan-09 7:18 
QuestionReading Excel Data Pin
Bharathy Sadagopan14-Jan-09 5:53
Bharathy Sadagopan14-Jan-09 5:53 
AnswerRe: Reading Excel Data Pin
pmarfleet14-Jan-09 11:10
pmarfleet14-Jan-09 11:10 
GeneralRe: Reading Excel Data Pin
Bharathy Sadagopan15-Jan-09 5:08
Bharathy Sadagopan15-Jan-09 5:08 
QuestionASP.NET Dynamic Data Pin
gantww14-Jan-09 5:42
gantww14-Jan-09 5:42 
QuestionDispose a datatable Pin
Member 236391614-Jan-09 4:48
Member 236391614-Jan-09 4:48 
AnswerRe: Dispose a datatable Pin
Aman Bhullar14-Jan-09 4:54
Aman Bhullar14-Jan-09 4:54 
GeneralRe: Dispose a datatable Pin
Christian Graus14-Jan-09 5:12
protectorChristian Graus14-Jan-09 5:12 
QuestionHow to use group by in datatable in c#? Pin
Member 236391614-Jan-09 3:04
Member 236391614-Jan-09 3:04 
QuestionAccess to bin folder denied because of forms authentication Pin
oceanexplorer8214-Jan-09 2:40
oceanexplorer8214-Jan-09 2:40 
Questionradio button binding Pin
cooltoad12314-Jan-09 2:26
cooltoad12314-Jan-09 2:26 
AnswerRe: radio button binding Pin
_AK_14-Jan-09 2:31
_AK_14-Jan-09 2:31 
GeneralRe: radio button binding Pin
cooltoad12314-Jan-09 2:33
cooltoad12314-Jan-09 2:33 
GeneralRe: radio button binding Pin
_AK_14-Jan-09 2:41
_AK_14-Jan-09 2:41 
QuestionHow can I make my asp.net 2.0 web application display exactly the same in firefox as in IE? Pin
Nada Adel14-Jan-09 2:20
Nada Adel14-Jan-09 2:20 
AnswerRe: How can I make my asp.net 2.0 web application display exactly the same in firefox as in IE? Pin
Christian Graus14-Jan-09 2:21
protectorChristian Graus14-Jan-09 2:21 

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.