Copied to clipboard

Flag this post as spam?

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


  • pnr 131 posts 226 karma points
    Aug 10, 2009 @ 12:19
    pnr
    0

    How to use Usercontrols in XSLT

    I am making a small webshop and need to add an input fields and a button for each item in a list. My plan was to make a usercontrol with thees options, an then render the usercontrol for each item in an XSLT list. But hov is that posible?

     

    Thanks in advance.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 10, 2009 @ 12:41
    Dirk De Grave
    0

    Hmm, don't think xslt is best fit for these kind of tasks... instead, why not going for listing all items in the user controls? For example, you could use a standard asp.net repeater or datagrid control and bind your umbraco data to that control!

    umbraco.tv has a great video on this subject, it might be worth watching those...

    My rule of thumb has always been: 'If you only need to present/list data, then go with an xslt macro, if you need to capture data or subscribe to control events, use user controls'

     

    Cheers,

    /dirk

  • pnr 131 posts 226 karma points
    Aug 10, 2009 @ 15:24
    pnr
    0

    Thanks for your reply!

    The reason for using the XSLT was that it would be easier to reuse the control for the webdesigner.

Please Sign in or register to post replies

Write your reply to:

Draft