In web application, i am trying to display image in .aspx page, for that i write code like this in page_load event ,
Image1.ImageUrl = @"C:\Users\Public\Pictures\Sample Pictures\Koala.JPEG";
but image is not displaying, can you help me thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
there is problem with the path of image …you need to give relative path for image rather than physical path
something like this
here image is in the Images folder of the application. i.e.which is part of project
First create a Images folder in your Solution Explorer. Then store your image in that folder and refer like as below.
Example
Check in deatil : Image Control Example