Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bruno 30 posts 50 karma points
    May 26, 2010 @ 17:43
    Bruno
    0

    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.

     

  • Bert 128 posts 251 karma points
    May 26, 2010 @ 17:55
    Bert
    1

    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

  • Chris Dunn 210 posts 401 karma points
    May 26, 2010 @ 18:02
    Chris Dunn
    1

    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

Please Sign in or register to post replies

Write your reply to:

Draft