Or do you mean macro parameters if your usercontrol is wrapped in a macro? In that case you wouldn't need the id of the document. You could just pass the current page's properties as parameters to the macro, which would then pass the values to the usercontrol, if you have public properties defined to accept the values.
Data in User Control
I want to receive the data files on my content in umbraco in my User Control.
For this I get the id of the document that I want to receive the data.
By the id of the document, how i can receive in user control the others parameters?
Cheers
B.
By parameters you mean the values you can set to a document, the ones you added yourself?
Document thedoc = new Document(id);
thedoc.getProperty("propertyname").value
Or do you mean macro parameters if your usercontrol is wrapped in a macro? In that case you wouldn't need the id of the document. You could just pass the current page's properties as parameters to the macro, which would then pass the values to the usercontrol, if you have public properties defined to accept the values.
-Chris
is working on a reply...