Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
One easy way is to create an xslt extension library in C# and access it from xslt. See here and here for examples.
>Tommy
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?
.
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.
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.
is working on a reply...
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.
Continue discussion
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
One easy way is to create an xslt extension library in C# and access it from xslt. See here and here for examples.
>Tommy
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?
.
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
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.
is working on a reply...
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.