How to get the value of content picker property in surface controller
How to find and get the value of umbraco contentpicker? Actually the umbraco return some digit value for that contentpicker, so iwant to convert that to display the exact value on screen How to do this?
The value you get back is a Udi. So you could do something like this in your surface controller
using Umbraco.Web;
// umb://document/53d62b4d52d2414fb0882d263cfd6e85
var udi = CurrentPage.Value<Udi>("propertyAlias", culture);
var document = Umbraco.Content(udi);
How to get the value of content picker property in surface controller
How to find and get the value of umbraco contentpicker? Actually the umbraco return some digit value for that contentpicker, so iwant to convert that to display the exact value on screen How to do this?
umb://document/53d62b4d52d2414fb0882d263cfd6e85
Hi.
The value you get back is a Udi. So you could do something like this in your surface controller
How I do for get data this results.
var page = Umbraco.Content(udi);
Simple I want to use.
string aa = page.CarName.ToString();
but this is error. please help me,thank.
Then you have to use the ModelBuilder and reference the model.
But you could also do this:
IpublishedContent don't contain a difinication for value.
I can't use page.Vlue(). what is wrong.
using Umbraco.Web;
Umbraco.Web is disable because I am using SurfaceController.
How I do?
is working on a reply...