Checking whether anything has been selected in a Content Picker using razor
If I try to make use of a field in a page selected by a content picker as below and there is no page selected, I get an error. Can anybody please tell me how to check whether anything is selected with the content picker before referring to the variable?
Checking whether anything has been selected in a Content Picker using razor
If I try to make use of a field in a page selected by a content picker as below and there is no page selected, I get an error. Can anybody please tell me how to check whether anything is selected with the content picker before referring to the variable?
Thanks.
@Model.NodeById(Model.panel1Selector).column1
Try this :
Ah, that's great, thanks!
is working on a reply...