html - Giving src of img tag dynamically from asp:fileupload control -


this looks quite challenging , may impossible way want.i have html image (img tag) , want use image upload asp:fileupload control.i facing lot of problems way out me @ moment.i have tried below :

     <img id="target" alt="[example]" runat="server" /> 

with code-behind :

     target.src = "~/images/" + filename; 

dont worry filename,it works fine.the image gets uploaded , works fine.but cropping disabled since image still on server.so, how can use image on client side? other suggestions?

can give src of img dynamically using eval?

use image control , set image in server side.

or cliente side, check this solution!


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -