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
I am trying to use below code :
var node = Umbraco.TypedContent(AnyIdToPass);
but it's giving me below error
The type or namespace name 'TypedContent' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
What I have missed in reference?
Is this in a cshtml file or a custom class? If custom class, you have to do something like:
var umbracoHelper = new Umbraco.Web.UmbracoHelper(Umbraco.Web.UmbracoContext.Current);
More info here: https://our.umbraco.org/documentation/Reference/Querying/UmbracoHelper/ see: "How to reference UmbracoHelper"
I am using asp.net User Controls, C#
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Using TypedContent in asp.net, Umbraco
I am trying to use below code :
var node = Umbraco.TypedContent(AnyIdToPass);
but it's giving me below error
The type or namespace name 'TypedContent' does not exist in the namespace 'Umbraco' (are you missing an assembly reference?)
What I have missed in reference?
Is this in a cshtml file or a custom class? If custom class, you have to do something like:
More info here: https://our.umbraco.org/documentation/Reference/Querying/UmbracoHelper/ see: "How to reference UmbracoHelper"
I am using asp.net User Controls, C#
is working on a reply...