开发者

What are the mime types of the various file types native to .NET?

I'm using Visual Studio 2010 to open files from a server, by going to File\Open\File (Control-O) and typing in a URL. The server is serving the开发者_Python百科 document from an URL without an extension (http://hostname/path/document).

If I set the mime type to text/xml, Visual Studio properly opens the document as an XML document when using text/xml, and a JavaScript document when using text/javascript. What are the mime types for .vb, .cs and other native file types in .NET? I've tried text/plain, text/csharp, and others, but all attempts opens as plain text.


Can you serve it with Content-Disposition: attachment and make sure the file name has the right extension? (the URL can stay the same...)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜