Copied to clipboard

Flag this post as spam?

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


  • Kenny Johansen 3 posts 21 karma points
    Aug 03, 2009 @ 16:53
    Kenny Johansen
    0

    XSLT and Usercontrols

    Is it possible for a usercontrol to output XSLT and thereby enabling the XSLT to trigger codebehind events?

    If not, is there another way to trigger c#  methods from XSLT?

     

    -Kenny

  • Tommy Poulsen 514 posts 708 karma points
    Aug 03, 2009 @ 17:01
    Tommy Poulsen
    0

    One easy way is to create an xslt extension library in C# and access it from xslt. See here and here for examples.

    >Tommy

     

  • Kenny Johansen 3 posts 21 karma points
    Aug 04, 2009 @ 10:01
    Kenny Johansen
    0

    But what if i want xslt to output a form with a submit button and then catch a Click event on that button in my c# code, as if i made the same form in a usrecontrol?

    .

  • Tommy Poulsen 514 posts 708 karma points
    Aug 04, 2009 @ 16:49
    Tommy Poulsen
    0

    Then it gets a bit harder, I guess ;-)

    Check out this thread for a similar question (as far as I understand your question) about adding C# buttons in xslt.

    >Tommy

     

  • Kenny Johansen 3 posts 21 karma points
    Aug 06, 2009 @ 10:21
    Kenny Johansen
    0

    Thanks for the replys Tommy.

    I was looking for a way to do templating for my user controls in umbraco. I dont think xslt is the way to go.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies