在頁面部分加入 office:office
在代碼部分加
void btnUploadTheFile_Click(object sender
{
if (uplTheFile
{
HttpPostedFile mFile= uplTheFile
int fileSize = mFile
if (fileSize==
{
txtErrMsg
return;
}
try
{
byte[] mFileByte = new Byte[fileSize];
mFile
string sFilename = ClientID + System
System
saveFile
saveFile
}
catch
{
txtErrMsg
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/13933.html