FineUI 官方论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

本论坛已关闭(禁止注册、发帖和回复)
请移步 三石和他的朋友们

FineUI首页 WebForms - MVC & Core - JavaScript 常见问题 - QQ群 - 十周年征文活动

FineUI(开源版) 下载源代码 - 下载空项目 - 获取ExtJS - 文档 在线示例 - 版本更新 - 捐赠作者 - 教程

升级到 ASP.NET Core 3.1,快、快、快! 全新ASP.NET Core,比WebForms还简单! 欢迎加入【三石和他的朋友们】(基础版下载)

搜索
查看: 2798|回复: 1
打印 上一主题 下一主题

Extaspnet上传WORD文档时会发生问题

[复制链接]
跳转到指定楼层
楼主
发表于 2012-5-23 12:30:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 河蟹社会 于 2012-5-23 12:36 编辑

如下的代码框架:
  1. <asp:FileUpload ID="FileUploadAttDoc" runat="server" /><ext:TriggerBox ID="TriggerBoxAttProject" runat="server" Label="选择项目" TriggerIcon="Search" Width="150px">                        </ext:TriggerBox><asp:Button ID="ButtonSave" runat="server" Text="保存" onclick="ButtonSave_Click" />     
复制代码
当上传WORD文档的时候会发生错误,但是上传其他文件RAR,EXCEL,图片等则不会发生错误:
详细错误信息:
var%20x0%3dX('ctl00_MainContent_WebPanel1_TriggerBoxAttProject')%3bX.state(x0%2c%7b%22Text%22%3a%22PJ01HW20120503-001%22%7d)%3bX.util.updateViewState('GAgEPEA8WAh4LXyFEYXRhQm91bmRnZBAVCAbnu7zlkIgJ5pel56iL6KGoCeaKpeS7t%2bWNlQblkIjlkIwG6K6i5Y2VCeivt%2baxguS5pgnnurPlk4HkuaYG5Y%2bR56WoFQgG57u85ZCICeaXpeeoi%2bihqAnmiqXku7fljZUG5ZCI5ZCMBuiuouWNlQnor7fmsYLkuaYJ57qz5ZOB5LmmBuWPkeelqBQrAwhnZ2dnZ2dnZ2RkAgUPDxYCHgRUZXh0BQdBVDAwMTc5ZGQCDw8PFgIeB1Zpc2libGVnZGQYAwUeX19Db250cm9sc1JlcX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ttDoc'),x1=X('ctl00_MainContent_WebPanel1_TriggerBoxAttProject');X.state(x0,{"Text":"TP_合同.doc"});X.state(x1,{"Text":"PJ01HW20120503-001"});X.util.updateViewState('gIBDxAPFgIeC18hRGF0YUJvdW5kZ2QQFQgG57u85ZCICeaXpeeoi+ihqAnmiqXku7fljZUG5ZCI5ZCMBuiuouWNlQnor7fmsYLkuaYJ57qz5ZOB5LmmBuWPkeelqBUIBue7vOWQiAnml6XnqIvooagJ5oql5Lu35Y2VBuWQiOWQjAborqLljZUJ6K+35rGC5LmmCee6s+WTgeS5pgblj5HnpagUKwMIZ2dnZ2dnZ2dkZAIFDw8WAh4EVGV4dAUHQVQwMDE3OWRkAg8PDxYCHgdWaXNpYmxlZ2RkGAMFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYFBRtjdGwwMCRNYWluQ29udGVudCRXZWJQYW5lbDEFLGN0bDAwJE1haW5Db250ZW50JFdlYlBhbmVsMSRGaWxlVXBsb2FkQXR0RG9jBTBjdGwwMCRNYWluQ29udGVudCRXZWJQYW5lbDEkVHJpZ2dlckJveEF0dFByb2plY3QFMWN0bDAwJE1haW5Db250ZW50JFdlYlBhbmVsMSRUcmlnZ2VyQm94QXR0Q29udHJhY3QFG2N0bDAwJE1haW5Db250ZW50JFdpbmRvd0JveAUpY3RsMDAkTWFpbkNvbnRlbnQkRW50aXR5RGF0YVNvdXJjZVByb2plY3QPFwkFEFVwZGF0ZVBhcmFtZXRlcnNkBQ9XaGVyZVBhcmFtZXRlcnNkBRRFbnRpdHlEYXRhU291cmNlVmlldxcDBRNfb3JpZ2luYWxQcm9wZXJ0aWVzZAUPX2Rpc2FibGVVcGRhdGVzaAUJX3RyYWNraW5nZwURQ29tbWFuZFBhcmFtZXRlcnNkBRBEZWxldGVQYXJhbWV0ZXJzZAURT3JkZXJCeVBhcmFtZXRlcnNkBQRiYXNlZAUQU2VsZWN0UGFyYW1ldGVyc2QFEEluc2VydFBhcmFtZXRlcnNkZAUqY3RsMDAkTWFpbkNvbnRlbnQkRW50aXR5RGF0YVNvdXJjZVRlbXBUeXBlDxcJBRBVcGRhdGVQYXJhbWV0ZXJzZAUPV2hlcmVQYXJhbWV0ZXJzZAUURW50aXR5RGF0YVNvdXJjZVZpZXcXAwUTX29yaWdpbmFsUHJvcGVydGllc2QFD19kaXNhYmxlVXBkYXRlc2cFCV90cmFja2luZ2cFEUNvbW1hbmRQYXJhbWV0ZXJzZAUQRGVsZXRlUGFyYW1ldGVyc2QFEU9yZGVyQnlQYXJhbWV0ZXJzZAUEYmFzZWQFEFNlbGVjdFBhcmFtZXRlcnNkBRBJbnNlcnRQYXJhbWV0ZXJzZGTfVA0+yN1TLlbnvoOQOFFKV1YSbA==',93);


沙发
发表于 2012-5-23 13:56:55 | 只看该作者
一个空页面,只放一个 asp:FileUpload 还会出错么?是不是文件太大了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|FineUI 官方论坛 ( 皖ICP备2021006167号-1 )

GMT+8, 2024-11-23 19:25 , Processed in 0.045084 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表