dsoframer 上传的Word文件怎么解析保存在服务上? dsoframer.HttpInit
dsoframer.HttpAddPostFile "FileId", "c:\ee.doc"
dsoframer.HttpPost "http://localhost/HyJy/Frame.aspx?Id=999&ftype=.Doc"服务器接收到上述方法提交的文件,服务端怎么解析保存?
dsoframer.HttpAddPostFile "FileId", "c:\ee.doc"
dsoframer.HttpPost "http://localhost/HyJy/Frame.aspx?Id=999&ftype=.Doc"服务器接收到上述方法提交的文件,服务端怎么解析保存?
解决方案 »
- 显示时间格式问题
- VSS check in问题?
- win 2003 如何注册 .net 1.1
- ASP.NET 2.0 怎样使服务器控件(LinkButton)不响应服务器端事件,点击一下老是刷新页面!
- 小弟愚笨写这个花了1天都没弄出来---分页
- 数据连接的问题
- 关于ASP.NET页面的文本框的问题------请高手们告诉我一下-----谢谢高手们
- ConnOpen()//加static 为什么不对啊
- 2.0中WebConfig中配置问题!
- ■■ CheckBoxList问题-----------高分提问
- Visual Studio 2008 怎么去掉表格的自动样式?
- AspNetPager用URL参数分页模式下,如何添加多个参数啊?
应该跟保存文件一样吧。
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
string strFileName = Request.Params["Id"];
string strFileType = Request.Params["ftype"]; if (strFileName == null)
{
return;
} if (Request.Files.Count == 0)
{
Response.Write("No File");
Response.End();
} if (Request.Files[0].ContentLength == 0)
{
Response.Write("File Error");
Response.End();
} //定义保存文件的物理路径
string strTmpPath = System.IO.Path.GetDirectoryName(Page.Request.PhysicalPath); //定义保存文件的服务器路径
string strUpLoadFilePath = strTmpPath + @"\doc\"; string fullFileName = strUpLoadFilePath + strFileName + "." + strFileType; Request.Files[0].SaveAs(fullFileName);
Response.Write("OK");
Response.End(); }