摘要:FileUpload
FileUploadField
前端
<ext:FileUploadField ID="FileUploadField1" runat="server" Icon="Attach" Width="300"
ButtonText="瀏覽...">
</ext:FileUploadField>
後端C#
//檔名
string fileName = this.FileUploadField1.PostedFile.FileName.ToString();
//轉二進位儲存
byte[] FileData = new Byte[this.FileUploadField1.PostedFile.ContentLength];
this.FileUploadField1.PostedFile.InputStream.Read(FileData, 0, this.FileUploadField1.PostedFile.ContentLength - 1);
//存MIME
this.FileUploadField1.PostedFile.ContentType;