一次上传多个文档 [英] uploading multiple documents at a time

查看:93
本文介绍了一次上传多个文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在updatapanel内部,我有一个包含多行的datagrid,其中给了我fileupload和一个upload按钮.在itemcommand事件中,我正在将文件内容存储在session变量中.现在,单击位于datagrid外部的Submit按钮,如何一次保存所有文档.我相信您的文档将作为一个集合被收集.

inside a updatapanel i have a datagrid which has multiple rows, in which i have given fileupload and a upload button.On itemcommand event i am storing the filecontent in session variable. Now on click of submit button which is outside datagrid, how to save all the documents at a time.

推荐答案

在会话中存储文件被延迟.你不能那样做.如果会话中需要值,则应保存到文件系统并存储文件名.在数据库中存储文件路径更有意义.
Your documents get served as a collection, I believe. Storing files in the session is retarded. You can''t do that. You should save to the file system and store filenames if you need values in the session. Storing file paths in the DB makes more sense.


这篇关于一次上传多个文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆