For some reason this logic is working for every node i want it to work on apart from 2. 'alternateColourImage' is an 'upload' property, if it there is no image uploaded to the node i dont want the browser to write anything. but for some reason its writing this for two of my nodes 'col:end' so obviuosly there is no value assigned to the property but its still writing this text out! any ideas?
upload property not returning null
if ((color.GetProperty("alternateColourImage").Value != null) || (color.GetProperty("alternateColourImage").Value != String.Empty))
{
Response.Write("col:" + color.GetProperty("alternateColourImage").Value + "end");
}
For some reason this logic is working for every node i want it to work on apart from 2. 'alternateColourImage' is an 'upload' property, if it there is no image uploaded to the node i dont want the browser to write anything. but for some reason its writing this for two of my nodes 'col:end' so obviuosly there is no value assigned to the property but its still writing this text out! any ideas?
is working on a reply...