i try want to detect if an image exists but can't get it to work. If need to load the image if it exits and if not exits it needs to load a default image. The IF/ELSE is working just the first part does not, what am i doing wrong i get all the time the default image
@{ String imageURL = "http://www.XXXX.com/cdcover.jpg')";
}
@if (File.Exists(imageURL)) {
@section cdcover{ src="http://www.XXXX.com/cd/XX/cdcover.jpg")" }
}
else {
@section cdcover{ src="http://www.XXXX.com/cd/defaulcover.jpg" }
}