Click here to Skip to main content
15,921,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends,

i want to do image upload in image control through button click event.
please help me .

my aspx code:
C#
form id="form1" runat="server">
    <div>
        <div style="height: 240px; width: 1104px; margin-left: 97px;" align="center">
            <br />
            <br />
            <asp:Image ID="Image1" runat="server" />
            <br />
            <br />
             nbsp;
            <asp:Button ID="fileupload" runat="server" Text="UPLOAD"            onclick="Button2_Click" />
            <br />
            <br />
            <br />         
        </div>
    </div>
    </form>
Posted
Updated 26-Dec-13 18:53pm
v4
Comments
Jignesh Khant 27-Dec-13 1:02am    
Use file upload control instead of button.
Mr.VJ 27-Dec-13 1:04am    
yes , i used but image not displaying after i use fileupload.

 
Share this answer
 
v3
Comments
Mr.VJ 27-Dec-13 1:10am    
thanks for giving suggestion ,but after uploading a image should display the image.
Gitanjali Singh 27-Dec-13 1:12am    
updated the solution,try updated one.
Mr.VJ 27-Dec-13 1:15am    
thnqqqqq so much :)
Gitanjali Singh 27-Dec-13 1:21am    
welcome :)

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