C sharp - Configuración de ASP.Net ImageUrl de Asphostportal


Configuración de ASP.Net ImageUrl de Asphostportal

Publicado por kratoss (1 intervención) el 10/08/2016 10:39:49
Hi there

I have a website that is a subdomain within one of my ASPHostPortal accounts. within this website I have an image folder with images. Within my ASP.Net code I am trying to dynamically load an image into an ASP Image control from this folder using

filepath = "~/images/PL880L.png";
imagectl.ImageUrl = Server.MapPath(filepath);

The path that is being returned is correct however, the image is not being loaded. The image DOES exist and the folder and the subdomain both have read write permissions set.

What could be the problem?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil