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
Hello guys,
I've been trying to get node ID or a reference to the current node from a Custom datatype usercontrol wrapper without success.
Doesn anyone know how to do this ?
Thanks in advanced
Nicu
public partial class PhotoAlbumManager : System.Web.UI.UserControl, umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor { public string umbracoValue; protected void Page_Load(object sender, EventArgs e) { //Get current node refernce } #region IUsercontrolDataEditor Members public object value { get { return umbracoValue; } set { umbracoValue = value.ToString(); } } #endregion }
In the Backend you can use:
Request.QueryString[
"id"];
In your website you can use:
Node
.GetCurrent().Id;
Hope it helps you,
Richard
thank you very much
Request.QueryString["id"] it's what I need
have a nice day
nicu
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Custom datatype usercontrol wrapper - getting node ID
Hello guys,
I've been trying to get node ID or a reference to the current node from a Custom datatype usercontrol wrapper without success.
Doesn anyone know how to do this ?
Thanks in advanced
Nicu
In the Backend you can use:
Request.QueryString[
"id"];
In your website you can use:
Node
.GetCurrent().Id;
Hope it helps you,
Richard
thank you very much
Request.QueryString["id"] it's what I need
have a nice day
nicu
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.