It just dawned on me that if i have a property on a node with the type of textstring, and i save a commaseparated string of integers fx (45,56,432,463,643); the value is converted to a decimal value, which prevents me from using Split(',').
For the moment I just separated using ';' instead of ',' but it has presented a problem before, where I needed a specific value.
What is the best way/best practice to handle this situation?
Handling Textstrings and Decimals in Razor?
It just dawned on me that if i have a property on a node with the type of textstring, and i save a commaseparated string of integers fx (45,56,432,463,643); the value is converted to a decimal value, which prevents me from using Split(',').
For the moment I just separated using ';' instead of ',' but it has presented a problem before, where I needed a specific value.
What is the best way/best practice to handle this situation?
Best regards
- Sune
Currently, I'm just using GetProperty to get a string value:
Thanks for the tip. Wasn't sure wether Model.GetProperty would return a string or a dynamic property.
is working on a reply...