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
Guys, In razor i am working with data type grid as follows
var answerXml = Library.ToDynamicXml(question.GetPropertyValue(DocumentType.Questions.Question.Answers));
I can then do foreach (var answer in answerXml) {
answer.answer.InnerText
I am in a class and want to know best way of doing something similar. I cannot use Library in class is there a way of doing this?
Regards
Ismail
In answer to my own question,
var lib = new umbraco.MacroEngines.Library.RazorLibraryCore(questionNode); var answerXml = lib.ToDynamicXml(questionNode.GetProperty<string>(DocumentType.Questions.Question.Answers));
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Datatype grid in class
Guys, In razor i am working with data type grid as follows
I can then do foreach (var answer in answerXml) {
answer.answer.InnerText
I am in a class and want to know best way of doing something similar. I cannot use Library in class is there a way of doing this?
Regards
Ismail
In answer to my own question,
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.