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
I'm probably missing something really obvious here, but have been having problems getting the id of the current page in the backoffice, within a usercontrol.
Previously (and this still works, while obsolete), I've done this:
var nodeId = umbraco.helper.Request("id");
What is the equivalent in v6?
This wiki might help: http://our.umbraco.org/wiki/reference/api-cheatsheet/difference-between-node-and-document
Since your in the backoffice you shoud use this code:
var nodeId = Convert.ToInt32(HttpContext.Current.Request.QueryString["id"])
Jeroen
Thanks Jeroen, knew it would be something pretty simple that I was missing, works perfectly.
Could you please mark a post as the solution if it helped you?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get node id in usercontrol
I'm probably missing something really obvious here, but have been having problems getting the id of the current page in the backoffice, within a usercontrol.
Previously (and this still works, while obsolete), I've done this:
What is the equivalent in v6?
This wiki might help: http://our.umbraco.org/wiki/reference/api-cheatsheet/difference-between-node-and-document
Since your in the backoffice you shoud use this code:
Jeroen
Thanks Jeroen, knew it would be something pretty simple that I was missing, works perfectly.
Could you please mark a post as the solution if it helped you?
Jeroen
is working on a reply...