Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
C#
string ImagePath = ConfigurationManager.AppSettings["DisplayNewsandEvents"].ToString();

                       
                    
                       imgBanner.Src =Server.MapPath(ImagePath + image.jpg);


What I have tried:

image is uploaded in a folder and i want to retrieve that image in a image control
Posted
Comments
Karthik_Mahalingam 28-Mar-16 2:41am    
try this imgBanner.Src =Server.MapPath(ImagePath +"//" + image.jpg);
Amit Bhoi 28-Mar-16 3:00am    
i was try this but its not working
What is the error? Any exceptions? Do you have try catch?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900