Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
Currently, I'm just using GetProperty to get a string value:
var splitter = Model.GetProperty("yourPropertyAlias").ToString().Split(',')
Thanks for the tip. Wasn't sure wether Model.GetProperty would return a string or a dynamic property.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted