The samples can differ based on your Razor base class or if you're running an old version.
Switch to Strong-Typed (2sxc 17.06+) Switch to Typed (2sxc 16+) Switch to Dynamic (Razor14 or below)
Switch to Strong-Typed (2sxc 17.06+) Switch to Typed (2sxc 16+) Switch to Dynamic (Razor14 or below)
Basic Example from App.Data
The easiest data to access comes from the current environment - like from the App or from DNN itself. The following example gets Persons
data from the App.Data.GetStream("Persons")
and just loops through them. This is similar to the example in the content tutorial, except that the data comes from the App.Data
instead of the current instance Data
.