Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Can a usercontrol datatype get the nodeid of the node it is currently attached to? What I mean is if I add my datatype/property to a page called 'Information' would my usercontrol datatype have access to the nodeid of 'information'?
Isn't the id available from umbraco.Presentation.NodeFactory.Node.Id or alternatively umbraco.Presentation.NodeFactory.Node.GetCurrent?
You can get the nodeid by using Request["id"]
@Simon - I wasn't sure if this was only available in the front end
@Skiltz - Thanks if I can't use GetCurrent etc.. I'll be using that :)
Lee, I think the nodefactory-way only works in the frontend, so you can skip ahead and use Request["id"] like Skiltz proposes :)
EDIT: haha! and I think you already did ;-)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Usercontrol DataType - Get Node Properties?
Can a usercontrol datatype get the nodeid of the node it is currently attached to? What I mean is if I add my datatype/property to a page called 'Information' would my usercontrol datatype have access to the nodeid of 'information'?
Isn't the id available from umbraco.Presentation.NodeFactory.Node.Id or alternatively umbraco.Presentation.NodeFactory.Node.GetCurrent?
You can get the nodeid by using Request["id"]
@Simon - I wasn't sure if this was only available in the front end
@Skiltz - Thanks if I can't use GetCurrent etc.. I'll be using that :)
Lee, I think the nodefactory-way only works in the frontend, so you can skip ahead and use Request["id"] like Skiltz proposes :)
EDIT: haha! and I think you already did ;-)
is working on a reply...