<asp:FileUpload ID="FileUpload1" runat="server" />
在codebehind(c#)中:
string contentType = FileUpload1.PostedFile.ContentType