TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pardeep Malik
NA
138
92.8k
Preview of image before uploading though fileupload
Apr 16 2013 3:14 AM
hi friends,
i want to generate preview before uploading it in website. To do that i try...
<
script
type
="text/javascript">
function
abc() {
var
path = document.getElementById(
"FileUpload1"
).value;
document.getElementById(
"Image1"
).src = path;
}
</
script
>
//page....
<
div
>
<
asp
:
FileUpload
ID
="FileUpload1"
runat
="server"
/>
<
br
/>
<
asp
:
Image
ID
="Image1"
AlternateText
="Preview"
runat
="server"
onchange
="abc()"
Height
="191px"
Width
="173px"
/>
</
div
>
but it didn't works....
please help me
Thankyou in advance....
Pardeep Malik
Reply
Answers (
5
)
Progress Bar Result Show
How 2 use FileUpload inside GridView inside UpdatePannel????