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
Hi
I have created a custom usercontrol datatype using "umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor"
I want to load a some stuff out of my database related to my current documentId but I'm not sure how to do this.
I have tried
Node currentNode = Node.GetCurrent();
But I am getting an error.
Is there a way of doing this?
Bex
Hi. You can get it from the query string "id" parameter. Like:
var docId = Convert.ToInt32(QueryString["id"]);
Thank you!
Daft moment! I remember now!
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
Get DocumentId from a Custom Datatype
Hi
I have created a custom usercontrol datatype using "umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor"
I want to load a some stuff out of my database related to my current documentId but I'm not sure how to do this.
I have tried
But I am getting an error.
Is there a way of doing this?
Bex
Hi. You can get it from the query string "id" parameter. Like:
Thank you!
Daft moment! I remember now!
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.