im having problems trying to get a block of code to run properly....
i have an opening and closing razor tag, but once i hit a section of code, the tags no longer match up and code appears as text. i use other razor code tags to wrap this section but can never get the tags enclosing the whole block of code to match.
one problem line is this
int widgetWidth = Convert.ToInt32(widget.GetPropertyValue<IPublishedContent>("widgetWidth"));
element ipublishedcontent is not supported, if i use < > it expects brackets, which still do not work.
whats the best approach for wrapping code within more than one foreach loop?
nested razor code
im having problems trying to get a block of code to run properly....
i have an opening and closing razor tag, but once i hit a section of code, the tags no longer match up and code appears as text. i use other razor code tags to wrap this section but can never get the tags enclosing the whole block of code to match.
one problem line is this
int widgetWidth = Convert.ToInt32(widget.GetPropertyValue<IPublishedContent>("widgetWidth"));
element ipublishedcontent is not supported, if i use < > it expects brackets, which still do not work.
whats the best approach for wrapping code within more than one foreach loop?
Unless you are using a value converter this line should be:
is working on a reply...