Copied to clipboard

Flag this post as spam?

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


  • Andrew Munro 78 posts 161 karma points
    Nov 02, 2012 @ 18:09
    Andrew Munro
    0

    DynamicNode dynamic properties are all strings

    Hi Guys. hit a weird problem in my website. Seemingly out of nowhere, my DynamicNode properties are all being returned as strings. I have a couple of custom properties that are integers that used to pull back as integers propery.

    For example, the following snipped used to work: (dWidth is the dynamic)

    if( ( dWidth.imperialWidth >= iGlobalStartWidth) 
              && (dWidth.imperialWidth <= iGlobalEndWidth))             
    {
          bWidthMatch = true;
          bOverallWidthMatch = true;
    }  
    

    Now that something has changed it requires me to use int.Parse() to to ensure that the type is correct. Is there any simple explination for this? As I understood it, umbraco should autotype a DynamicNode's dynamic properties.Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft