Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Phil Crowe 192 posts 256 karma points
    Nov 29, 2010 @ 12:53
    Phil Crowe
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft