FineUI 官方论坛

标题: Extaspnet上传WORD文档时会发生问题 [打印本页]

作者: 河蟹社会    时间: 2012-5-23 12:30
标题: Extaspnet上传WORD文档时会发生问题
本帖最后由 河蟹社会 于 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%2bihqAnmiqXku7fljZUG5ZCI5ZCMBuiuouWNlQnor7fmsYLkuaYJ57qz5ZOB5LmmBuWPkeelqBQrAwhnZ2dnZ2dnZ2RkAgUPDxYCHgRUZXh0BQdBVDAwMTc5ZGQCDw8PFgIeB1Zpc2libGVnZGQYAwUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgQFG2N0bDAwJE1haW5Db250ZW50JFdlYlBhbmVsMQUwY3RsMDAkTWFpbkNvbnRlbnQkV2ViUGFuZWwxJFRyaWdnZXJCb3hBdHRQcm9qZWN0BTFjdGwwMCRNYWluQ29udGVudCRXZWJQYW5lbDEkVHJpZ2dlckJveEF0dENvbnRyYWN0BRtjdGwwMCRNYWluQ29udGVudCRXaW5kb3dCb3gFKWN0bDAwJE1haW5Db250ZW50JEVudGl0eURhdGFTb3VyY2VQcm9qZWN0DxcJBRBVcGRhdGVQYXJhbWV0ZXJzZAUPV2hlcmVQYXJhbWV0ZXJzZAUURW50aXR5RGF0YVNvdXJjZVZpZXcXAwUTX29yaWdpbmFsUHJvcGVydGllc2QFD19kaXNhYmxlVXBkYXRlc2gFCV90cmFja2luZ2cFEUNvbW1hbmRQYXJhbWV0ZXJzZAUQRGVsZXRlUGFyYW1ldGVyc2QFEU9yZGVyQnlQYXJhbWV0ZXJzZAUEYmFzZWQFEFNlbGVjdFBhcmFtZXRlcnNkBRBJbnNlcnRQYXJhbWV0ZXJzZGQFKmN0bDAwJE1haW5Db250ZW50JEVudGl0eURhdGFTb3VyY2VUZW1wVHlwZQ8XCQUQVXBkYXRlUGFyYW1ldGVyc2QFD1doZXJlUGFyYW1ldGVyc2QFFEVudGl0eURhdGFTb3VyY2VWaWV3FwMFE19vcmlnaW5hbFByb3BlcnRpZXNkBQ9fZGlzYWJsZVVwZGF0ZXNnBQlfdHJhY2tpbmdnBRFDb21tYW5kUGFyYW1ldGVyc2QFEERlbGV0ZVBhcmFtZXRlcnNkBRFPcmRlckJ5UGFyYW1ldGVyc2QFBGJhc2VkBRBTZWxlY3RQYXJhbWV0ZXJzZAUQSW5zZXJ0UGFyYW1ldGVyc2Rkb4N8%2foug3zm8aiGhEyPyqRkUD7I%3d'%2c131)%3b
补充: 如果把ASP.NET的上传控件换成EXT的上传控件,则会出现这个错误:
var x0=X('ctl00_MainContent_WebPanel1_FileUploadAttDoc'),x1=X('ctl00_MainContent_WebPanel1_TriggerBoxAttProject');X.state(x0,{"Text":"TP_合同.doc"});X.state(x1,{"Text":"PJ01HW20120503-001"});X.util.updateViewState('gIBDxAPFgIeC18hRGF0YUJvdW5kZ2QQFQgG57u85ZCICeaXpeeoi+ihqAnmiqXku7fljZUG5ZCI5ZCMBuiuouWNlQnor7fmsYLkuaYJ57qz5ZOB5LmmBuWPkeelqBUIBue7vOWQiAnml6XnqIvooagJ5oql5Lu35Y2VBuWQiOWQjAborqLljZUJ6K+35rGC5Lmm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XJzZAUEYmFzZWQFEFNlbGVjdFBhcmFtZXRlcnNkBRBJbnNlcnRQYXJhbWV0ZXJzZGTfVA0+yN1TLlbnvoOQOFFKV1YSbA==',93);



作者: sanshi    时间: 2012-5-23 13:56
一个空页面,只放一个 asp:FileUpload 还会出错么?是不是文件太大了




欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/) Powered by Discuz! X3.4