For "text/html" the following works:
System.Net.Mime.MediaTypeNames.Text.Html
views:
268answers:
2
+2
A:
There isn't a built in constant in the current .NET Framework BCL. There are many MIME types that don't have a constant there.
Mehrdad Afshari
2009-06-11 14:53:42
+1
A:
The framework just provides some basic/generic commonly used media types. The list of vendor specific MIME types changes too frequently for these to be burned into the framework so you'll need to do this one yourself.
Kev
2009-06-11 14:57:46