I have a file upload control without upload button & a label in a page. I want to display the content of file upload control in that label just after browsing the file upload control.I want to do this without help of AJAX.So how to do this ? Can anyone kindly help me ? Please write the code using C# language not in VB.
views:
192answers:
4I mean the filepath.Please help me brother.
2009-09-19 11:18:46
Just after browsing you will be on the client side, so I think you'll want to do this with javascript rather than a server side language.
Paddy
2009-09-20 20:59:01
So,please tell me how to do this with javascript.
2009-09-21 05:24:38
A:
Basilevs
2009-09-21 06:51:33
A:
The filepath isn't exposed through JavaScript (certainly not in the most recent versions of browsers). This is a security feature of the language.
Zhaph - Ben Duguid
2009-09-21 08:18:55
I don't think you can. You'd need to use AJAX to post the form back to the server, and return the image through a url - possibly using an HttpHandler or similar.
Zhaph - Ben Duguid
2009-09-21 11:09:16