是否有可能在不使用任何点击事件的情况下,当用户通过点击文件上传控件的浏览按钮选择图像时,图像应立即显示在... [英] Is there any possibility that without using any click event, when user selects an image by clicking on browse button of file upload control, then immediately the image should be displayed in the...

查看:55
本文介绍了是否有可能在不使用任何点击事件的情况下,当用户通过点击文件上传控件的浏览按钮选择图像时,图像应立即显示在...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果没有使用任何点击事件,当用户通过点击文件上传控件的浏览按钮选择图像时,是否有可能立即将图像显示在图像控件中..

解决方案

您可以使用AJAX控件工具包的异步文件上传控件。在选择图像后,可以使用服务器端事件(UploadedComplete)显示图像。以下是样本:

http://www.asp.net/ajaxLibrary /AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx [ ^ ]

Is there any possibility that without using any click event, when user selects an image by clicking on browse button of file upload control, then immediately the image should be displayed in the image control..

解决方案

You may use AJAX control toolkit''s asynchronous file upload control. There is a server side event(UploadedComplete) that you can use to show the image after selecting the image. Here is the sample:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx[^]


这篇关于是否有可能在不使用任何点击事件的情况下,当用户通过点击文件上传控件的浏览按钮选择图像时,图像应立即显示在...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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