I'd like to evaluate an XSLT macro at Pre Render is this possible?
Reason: content is published on a click event after Page_Load, and before Page_PreRender. And I want the newly created content to show in the output immediately (without a hacky redirect).
@Ismail, I don't think so, my issue is it generates it's output before the click in the page lifecycle, which means the listing macro will have one less element in it than if the html was generated after the click in the page lifecyle.
I expect the answer is simply "No" or at least "It's far simpler to convert the xslt to usercontrol where you can control when it is databound" (which is what we've done in our current case, but it would be nice to know if there is a feasible way to have xslt bind after click events.)
Evaluate XSLT macro at PreRender
Hi All,
I'd like to evaluate an XSLT macro at Pre Render is this possible?
Reason: content is published on a click event after Page_Load, and before Page_PreRender. And I want the newly created content to show in the output immediately (without a hacky redirect).
Cheers.
Murray.
Murray,
In a template you could wrap the macro call with inline c# eg
Not sure if that is what you are after exactly?
Regards
Ismail
@Ismail, I don't think so, my issue is it generates it's output before the click in the page lifecycle, which means the listing macro will have one less element in it than if the html was generated after the click in the page lifecyle.
I expect the answer is simply "No" or at least "It's far simpler to convert the xslt to usercontrol where you can control when it is databound" (which is what we've done in our current case, but it would be nice to know if there is a feasible way to have xslt bind after click events.)
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.