using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using umbraco.cms.businesslogic.web;
using umbraco.NodeFactory;
publicpartialclassusercontrols_WebUserControl : System.Web.UI.UserControl
{
protectedvoid Page_Load(object sender, EventArgs e)
{
Document n = newDocument(Node.getCurrentNodeId());
n.getProperty("someProperty").Value = "aa";
}
}
Has the way we assign values to Node Properties changed?
n.GetProperty("someProperty").Value = "West End";
The above code now yields: Property or indexer umbraco.presentation.nodeFactory.Property.Value cannot be assigned to -- it is read only.
Is there a new way or should I handle the Document object?
hii kevon.
where did you try to do this?
I tried to perform it on an Content node.
from event? from user control?
UserControl.
this is work for me:
OK I'll handle the Document Obj and not the Node Obj. Thank you.
is working on a reply...