Click here to Skip to main content
15,912,069 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<asp:Image ID="Image1" runat="server" Height="106px" />

    <asp:Button ID="Button1" runat="server" Text="Browse.." />

    <asp:Button ID="Button2" runat="server" Text="UPlOAD" />




i am using this page.
now i m want.....
1.. when click on browse button open dialog will come and whic image we select it show on image box...
2.. when i click on upload button it upload to the image folder in my project...
3.. i don't want to show any other control here...........
plese help me...............
thnx in advance........................
Posted

1 solution

What you describe can not be done. you simply won't able to show the image when the user selects it. In order for the image to be displayed you need to upload it to your site first.

May be you can upload the image to temp folder using AJAX, then if the user decided to keep it move it to its permanent folder.

UPDATE: there are many ways to do it using ajax/jQuery. One example is here http://www.zurb.com/playground/ajax_upload[^]
 
Share this answer
 
v2
Comments
dilip.aim11 10-Mar-11 23:51pm    
i m not able to select the image..

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