0

This looks quite challenging and may be impossible to do it the way i want.I have an html Image (img tag) and i want to use an image which i upload from the asp:FileUpload control.I am facing a lot of problems but this is the only way out for me at the moment.I have tried the below :

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

with code-behind :

     target.Src = "~/Images/" + fileName;

Dont worry about filename,it works just fine.The image gets uploaded and works just fine.BUT cropping is disabled since the image is still on the server.So, how can i use an image on client side? any other suggestions?

Can we just give the src of img dynamically by using Eval?

RelatedRhymes
  • 428
  • 6
  • 26

1 Answers1

0

Use Image control and set the image in server side.

Or for cliente side, check this solution!

Community
  • 1
  • 1
Elton Santana
  • 950
  • 3
  • 11
  • 22