Ask a Question related to ASP.NET General, Design and Development.
-
Bart Vanwesemael #1
Returning files in my Response : ContentType wanted
Hi,
I return a file to the client browser by using Response.WriteFile
Now, there can be multiple type of files, and I need to specify the
contenttype.
Is there a way of getting this out the file itself, or am I stuck with
determinating it from the file extention?
Bart
Bart Vanwesemael Guest
-
problems setting Response.ContentType
I'm having issues trying to set the Resposne.ContentType from a Component on a (skeleton) ASP page -- the ASP goes like: <%@ Language=VBScript %><%... -
Response.ContentType = "application/vnd.ms-excel"
Hi , I have my asp successfully creating excel file viewable through IE using the header: Response.ContentType = "application/vnd.ms-excel" ... -
Wanted: Help/Script to truncate mp3 files.
Hello. I would like to learn how to write a script that would truncate a mp3 file to a given number of seconds of music. This is like what amazon... -
Stored Procedure not returning the wanted resultset
My stored procedure is not returning the resultset I am expecting. The procedure is: CREATE PROCEDURE hms.getHMStest( @userid int, @userrole... -
Response.ContentType
Whats the difference between..?? "application/x-msexcel" and "application/vnd.ms-excel" -
William F. Robertson, Jr. #2
Re: Returning files in my Response : ContentType wanted
The lazy way I usually do it, is to set the content type to
application/octet-stream. And let the user machine decide how to open it.
HTH,
bill
"Bart Vanwesemael" <bva@ezos.com> wrote in message
news:uTKph4QVDHA.3376@tk2msftngp13.phx.gbl...> Hi,
>
> I return a file to the client browser by using Response.WriteFile
>
> Now, there can be multiple type of files, and I need to specify the
> contenttype.
>
> Is there a way of getting this out the file itself, or am I stuck with
> determinating it from the file extention?
>
>
> Bart
>
>
William F. Robertson, Jr. Guest



Reply With Quote

