S
Stephen Walch
I have seen many examples on the web for downloading attachments ffrom
ASP.NET forms using response.WriteBinary, but they all use hard-coded
ContentTypes (for example, Response.ContentType = "application/pdf"). Is
there a good way to "guess" the content type for arbritary file name? Every
web server has a mapping from file extension to content type, but how do I
get this from ASP.NET? Thanks!
ASP.NET forms using response.WriteBinary, but they all use hard-coded
ContentTypes (for example, Response.ContentType = "application/pdf"). Is
there a good way to "guess" the content type for arbritary file name? Every
web server has a mapping from file extension to content type, but how do I
get this from ASP.NET? Thanks!