如何使用c#.net在fileupload控件和预览中上传多个图像 [英] how to upload multiple images in fileupload control and preview by using c#.net

查看:68
本文介绍了如何使用c#.net在fileupload控件和预览中上传多个图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
如何在fileupload控件和预览中上传多个图像使用c#.net



只需单击浏览即可选择多个文件显示文件预览数据列表或任何其他模板plrase给我一个解决方案.....?

hi how to upload multiple images in fileupload control and preview by using c#.net

just click on browse buttoon select multiple files that files display in preview either datalist or any other template plrase give me a solution.....?

推荐答案

阅读以下文章。



1. 使用ASP.NET 4.5中的FileUpload控件上载多个文件 [ ^ ]

2. ASP.NET的多文件上载,客户端调整图像大小 [ ^ ]

3. jQuery使用带有多个文件上传插件示例的Asp.net上传多个文件 [ ^ ]
Go through following articles.

1. Upload Multiple Files Using FileUpload Control in ASP.NET 4.5[^]
2. Multiple Fileupload for ASP.NET with Client Side Resizing of Images[^]
3. jQuery Upload Multiple Files using Asp.net with Multiple File Upload Plugin Example[^]


尝试这个链接我希望它能给你 http://stackoverflow.com/a/15438553/1966993 [ ^ ]



使用进度条显示上传文件的进度,并在for循环中尝试增加进度条值。



假设您有10个文件要上传,那么for循环增量10和10个文件的结尾,你的进度条是100%并且工作正常。



试试这个并让我们知道这是否适合您。



谢谢

Ganesh
try this link I hope it will give u http://stackoverflow.com/a/15438553/1966993[^]

use progress bar to show the progress of the files uploaded and in the for loop try to increment the progress bar value.

For suppose if you have 10 files to upload then in for loop increment by 10 and by the end of 10 files, your progress bar is 100% and works perfectly.

Try this and let us know if this works for you.

Thanks
Ganesh


首先计算图像并使用for循环根据你的图像计数然后写上传代码





它的简单做就是自动解决
first count images and use for loop according to your image counting and then write upload code


its simple to do just do it will solve automatically


这篇关于如何使用c#.net在fileupload控件和预览中上传多个图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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