I have a C# user control for use in Umbraco 4. The dropdown list contains a list of nodeIDs. I want Umbraco to load the ID I select in the list. Does anyone know the API call to get umbraco to do this?
Thanks for reply, but I really don't understand it. Isn't this line of code just creating a new node item? I just want to send the website to the page selected in a dropdown list. Just like clicking a link, but selectingi it from a dropdown list instead.
Go to node ID selected in dropdown?
I have a C# user control for use in Umbraco 4. The dropdown list contains a list of nodeIDs. I want Umbraco to load the ID I select in the list. Does anyone know the API call to get umbraco to do this?
Thanks in advance for any help you can offer.
Shufflemoomin
using umbraco.presentation.nodeFactory;
Node myNode = new umbraco.presentation.nodeFactory.Node(rootNodeID);
// now do something with the node
Thanks for reply, but I really don't understand it. Isn't this line of code just creating a new node item? I just want to send the website to the page selected in a dropdown list. Just like clicking a link, but selectingi it from a dropdown list instead.
How about redirecting to the selected node in the onChange event of the DropDownList, like this:
Thanks Kenneth. Such a simple solution and worked a treat. Just what I needed.
Still learning I guess. :)
Could you plz post a sample of that usercontrol... - I'm struggeling with building exactly such a control: http://our.umbraco.org/forum/developers/extending-umbraco/35452-Display-mediaFolderIds-in-a-usercontrol
:-)
is working on a reply...