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
Here i want to get some umbraco content property value and i have tried it to get from umbraco api controller.
i have tried this by using page id but the page id is always return null.
Any one please let me know how to handle this?
public GetMyProperty(int nodeId)
var myNode = Umbraco.TypedContent(nodeId);
var myProperty = myNode.GetPropertyValue("alias");
You may need to return myProperty as Json, in which case you can use Newtonsoft.Json to serialise this easily.
and i just make a ajax call to GetMyProperty (api controller) to get the property value. In your reply you mentioned nodeId, Could you please tell me how can i get the node id?
Yep exactly, you will probably need to query that from some element in the Html where you store the id (not sure of any potential security issues with that though)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted