Last post Jun 06, 2011 01:41 AM by rickjackson
Jun 05, 2011 09:54 PM|sh.abhi|LINK
I am developing asp.net website. I have copied few images under Bin/Image folder. I have provided static url for imageurl for 1 of images. In the Visual Studio I can see the image getting displayed. However when I run application, in the browser image is
not getting displayed. I am using image control from system.web.UI.
Any pointers would be helpful.
Jun 05, 2011 10:42 PM|rickjackson|LINK
Hello Abhi.... never your images inside the BIN folder of your application cause that folder always contains DLL of your application if you want to store images of your application then create a separate folder and link your imagebutton imageurl from the
Jun 05, 2011 10:49 PM|sh.abhi|LINK
This just solved my problem.
Jun 05, 2011 10:54 PM|sh.abhi|LINK
Let me ask little bit further--
I am doing 2 step process
Step1) accepting image from user by fileupload control and saving this on hard disk.
Step2) Display the same image using image control.
Now how can I save images directly into this image folder of the application. currently I am saving images on C: and manually coping them over the images folder of the project directory. Is there any better way?
Thanks in Advance.
Jun 06, 2011 01:41 AM|rickjackson|LINK
Hello ABhi.... check out this link : http://www.codedigest.com/CodeDigest/38-Upload-image-to-file-system-and-create-thumbnail-image-on-the-fly-in-C--and-ASP-Net.aspx