I am using Umbraco 4.5.2 Currently I am developing a.Net user control and a document ID will be assed to it. So how can I retrieve all its properties by using its id? I know xslt can do this but do not know how user control do it?
I know the umbraco.presentation.nodeFactory.Node.GetCurrent() is helpfull but i cant do it completely.
Thnks for reply and i have seen that the how to create a user control and i created but i cant apply the code:umbraco.presentation.nodeFactory.Node.GetCurrent()
How can user control retreive document property
Hi All
I am using Umbraco 4.5.2 Currently I am developing a.Net user control and a document ID will be assed to it. So how can I retrieve all its properties by using its id? I know xslt can do this but do not know how user control do it?
I know the umbraco.presentation.nodeFactory.Node.GetCurrent() is helpfull but i cant do it completely.
Can any one help me with complete code.
Thank you
Touhid
Hi Touhid
I think you should have a look at this WIKI page: http://our.umbraco.org/wiki/reference/api-cheatsheet it should give you a pretty good idea about it if you posses .NET and C# skills :-)
I also recommend you watch this free episode on umbraco.tv showing how to make a user control based macro in Umbraco: http://umbraco.tv/help-and-support/video-tutorials/introduction-to-umbraco/developer-introduction/using-net-user-controls
hope this helps.
/Jan
Hi
Thnks for reply and i have seen that the how to create a user control and i created but i cant apply the code:umbraco.presentation.nodeFactory.Node.GetCurrent()
Can you help me in details?
Touhid
is working on a reply...