hi, i was pissed off with this problem.. it was obvious to be very simple and yet i cant solve it. i am newbie in .net.

i want to attach my selected image file in image webcontrol using html upload component and my code is this..
this code is located in a button component,

image1.ImageUrl:=imgfile1.Value;

everytime i run it no image found.. is there any way to solve this? thank you guys.

Try this :
Image1.Src = Request.ApplicationPath & "/images/Kusno.jpg"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.