Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
when i click the change button i wanted to upload a photo then the uploaded photo display on the img column...any one help me..


XML
<div class="af-pf-imfg"><img src="images/pt.png" id="imgDisplay" width="160" height="180" alt="" /></div>
<%--<div class="af-pf-imfg2"  onclick="uploadStarted();" style="cursor:pointer;">Change Photo</div>--%>
<input class="af-pf-imfg2"  type="file" value="kerala" style=" width:85px; margin-left:65px; cursor: pointer;" />
Posted
Updated 27-Feb-14 21:57pm
v3
Comments
So, where is the issue?
[no name] 28-Feb-14 3:46am    
Change button is a div so when i click the change button it will act as a browse button..how it possible..and the uploaded image display on img src section .. this method "onclick="uploadStarted();" contain some database informtaion it is not upload on jquery...

Found an article to implement this. It uses Asp.Net C# MVC 3,4 Razor. May it'll guide you through what you are achieving :
http://www.askamoeba.com/Opensource/Opensourcedetail/132/Crop-Resize-Upload-Images-in-C-MVC3-MVC4-using-Jquery-Razor[^]
 
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