Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kevon K. Hayes 255 posts 281 karma points
    Dec 08, 2011 @ 23:27
    Kevon K. Hayes
    0

    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?

     

  • gilad 185 posts 425 karma points
    Dec 08, 2011 @ 23:41
    gilad
    0

    hii kevon.

    where did you try to do this?

  • Kevon K. Hayes 255 posts 281 karma points
    Dec 08, 2011 @ 23:43
    Kevon K. Hayes
    0

    I tried to perform it on an Content node.

  • gilad 185 posts 425 karma points
    Dec 08, 2011 @ 23:46
    gilad
    0

    from event? from user control?

  • Kevon K. Hayes 255 posts 281 karma points
    Dec 08, 2011 @ 23:47
    Kevon K. Hayes
    0

    UserControl.

  • gilad 185 posts 425 karma points
    Dec 08, 2011 @ 23:57
    gilad
    0

    this is work for me:

    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;
    
    public partial class usercontrols_WebUserControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Document n = new Document(Node.getCurrentNodeId());
            n.getProperty("someProperty").Value = "aa";
        }
    }
  • Kevon K. Hayes 255 posts 281 karma points
    Dec 08, 2011 @ 23:59
    Kevon K. Hayes
    0

    OK I'll handle the Document Obj and not the Node Obj.  Thank you.

Please Sign in or register to post replies

Write your reply to:

Draft