I need to update a property (called Available) on a collection of nodes (1+) from False to True. I am doing this in C# but this is not a User Control - it is the callback from PayPal. So, there is no "Current" page.
How do I load each node into a "Document"? Once I've got it I know how to update it :-)
I thought I could use Node.GetNodeByXpath() but I'm not sure what the path should be!
Hi, I am assumeing that you have some client and server side code. So you could set a property of nodeId on your model. Pre post set this property to the context node. Then when a post is done pass the node id as a hidden field. You should then have the nodeid as a property you can use server side?
Get Node by Property value
I need to update a property (called Available) on a collection of nodes (1+) from False to True. I am doing this in C# but this is not a User Control - it is the callback from PayPal. So, there is no "Current" page.
How do I load each node into a "Document"? Once I've got it I know how to update it :-)
I thought I could use Node.GetNodeByXpath() but I'm not sure what the path should be!
Ah, OK, I've done it! Here's the code in case it helps anyone else ... or, of course, in case anyone sees a problem with it ;-)
soldProduct = new Document(Node.GetNodeByXpath(@"//*[string(productStockCode) = '" + this.ItemNumber[i] + "']").Id);
Thanks for telling, I was having issues in filtering out all nodes having a certain checked property
This is my result
Hi, I am assumeing that you have some client and server side code. So you could set a property of nodeId on your model. Pre post set this property to the context node. Then when a post is done pass the node id as a hidden field. You should then have the nodeid as a property you can use server side?
is working on a reply...