从asp.net fileupload控件中选择后如何立即显示图像? [英] How to display Image imediatly after selecting from asp.net fileupload control..?
问题描述
你好朋友...
我有一个用于将产品添加到在线商店的页面.
会将数据插入数据库和类似
的数据
1)产品名称
2)产品代码
3)产品说明
4)产品价格
5)产品图片
insert方法的工作方式类似于将数据插入数据库,并将文件上传到Web服务器的特定目录.
但是我的实际问题是,当用户/管理员当时为产品选择图片时,该图片会在上传之前显示在该页面上,简而言之,我想预览所选的图片.无论它将使用javascript,jquery,Ajax还是c#,我都希望通过钩子或骗子来实现.
我正在使用asp.net的文件上传控件.
请帮我...
在此先感谢您.
Tejas Vaishnav
Hello Friend...
I have a Page for Adding a Product to Online Store.
that will insert data to database and data like
1) Product Name
2) Product Code
3) Product Description
4) Product Price
5) Product Image
The insert method will work like insert the data into database and also upload a file to particular directory to the web server.
but my actually question is that when user/admin select a image for product at that time the image will be displayed on that page before it will be uploaded, in short i want to preview that image which is selected. no matter it will be using javascript, jquery, Ajax or c#, i wanted that by hook or crook.
i am using file upload control of the asp.net.......
please help me...
thank you in Advance..
Tejas Vaishnav
推荐答案
您需要使用flash/silverlight/java/activeX.
查看一些链接
http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/ [ ^ ]
http://code.google.com/p/image-upload-preview/ [ ^ ]
http://aquantum-demo.appspot.com/file-upload [
You need to use flash/silverlight/java/activeX.
See some links
http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/[^]
http://code.google.com/p/image-upload-preview/[^]
http://aquantum-demo.appspot.com/file-upload[^] (Set "Upload Queue")
这篇关于从asp.net fileupload控件中选择后如何立即显示图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!