I assume your use the Node class from the NodeFactory which is a representation from the xml file. If you want to modify data you need the Document class in the umbraco.cms.businesslogic.web namespace
Create a new Document object using doc = new Document( the document id);
then assign the value using doc.getProperty("TheAlias").Value = "Your value";
Setting a value to a node property
I'd like to know how to set a value to a node property? It's Value property does not contain a setter.
HI,
I assume your use the Node class from the NodeFactory which is a representation from the xml file. If you want to modify data you need the Document class in the umbraco.cms.businesslogic.web namespace
Create a new Document object using doc = new Document( the document id);
then assign the value using doc.getProperty("TheAlias").Value = "Your value";
Hope it helps you,
Richard
Hi Raul,
If you'd like to set a value to a property from c# code, use:
Cheers,
/Dirk
node property is used in programming languages.it is the property of c# language.
is working on a reply...