嗨,我在文件上传控制方面有些困惑,请帮助 [英] hi i have a confusion in file upload controll pls help

查看:42
本文介绍了嗨,我在文件上传控制方面有些困惑,请帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我采取了一个文件上传控件,还有一个单独的按钮,名为上载,还有一个图像控件.一旦我使用文件上传选择了任何图像,并单击了该上传按钮.然后必须将所选图像加载到图像控件中.请帮助我完成此任务.
谢谢您

hi i have taken a file upload control,and a separate button named as upload,and an image control.once i select any image using file upload and when i click that upload button. Then the selected image has to be loaded in image control.please help me how to complete this task.
thank you

推荐答案

为您的解决方案,您需要执行以下操作...


1)首先,您需要将映像上传到任何临时文件或服务器端的映像文件夹.

2)然后使用新上传的图像制作imageurl并使用server.mappath()绑定图像控件的imageurl属性.
for your solution you need to do something like this...


1) first of all you need to upload you image to any temp or you image folder at server side.

2) then make imageurl with newly uploaded image and use server.mappath() to bind imageurl property of your image control.


这篇关于嗨,我在文件上传控制方面有些困惑,请帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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