Click here to Skip to main content
15,897,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi how can i set the fileupload control a value in pageload event or in javascript.

or
can i get the image from client disk and upload it to server.

Thanks
Posted

1 solution

I assume you're using ASP.NET, even though you don't say so, in the text OR in the tag system provided. How can people not be smart enough to add basic tags to a question ?


wrote:
how can i set the fileupload control a value in pageload event or in javascript.


You can't. If you knew anything about web development, you'd understand why it is that you can't do that. Imagine if I could write a page, and have a hidden file upload control, so when you submitted that page, I was able to steal files from your computer ?

wrote:
can i get the image from client disk and upload it to server.


Give them a file upload control and get them to choose the image file. That is your only ASP.NET option. Or, to be more precise, it's the only option you have using HTML.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900