title: How do I get the MIME type of a file being requested in ASP.NET C#?
body: <p>I would like to handle requests differently depending upon the MIME type. For example, I have PDF's, images and other media files that I would like to prohibit access to based on their respective MIME types. Any ideas on how to do this? Thanks for the help.</p>
  
  <p>I should also note that accessing the Windows registry is not an option for my application.</p>