umbraco.library:RenderTemplate doesnt fire click event of asp:button
I'm having issues with buttons postbacks, the scenario is I created a macro (usercontrol), and created a template and in this template im calling this macro. Everything works fine, unless if I create another macro (xslt) and render that template in it doesnt fire button clicks or anything works in terms of postback.
Has anyone come across this issue before? any thoughts would be helpful, thanks.
Render template does *not* support events but simply renders controls as flat html so you'll need a different approach than RenderTemplate for what you're trying. RenderTemplate has never been meant to support the scenario above but was designed to render xslt based templates. Sorry.
in one of my document type, i have fields called box1 box2 box3 for sidebar which you can pick a content to display on the sidebar (contentpicker), any other recommentation for this requirement? they want to pick sidebar boxes for each content diffrently.
XSLT macros tend to only call other XSLT macros using RenderTemplate due to this drawback (not much point using a UC macro with little or no .net functionality). UC macros on the other hand can call both types of macro with no such limitations.
A UC macro can call another macro via the <umbraco:macro...> server control (or dynamically added with umbraco.presentation.templateControls.Macro).
Replied to your comment here, where a UC macro renders the content of richtext areas of other nodes, that may contain sub macros, including UC ones which require to be part of the page lifecycle.
umbraco.library:RenderTemplate doesnt fire click event of asp:button
I'm having issues with buttons postbacks, the scenario is I created a macro (usercontrol), and created a template and in this template im calling this macro. Everything works fine, unless if I create another macro (xslt) and render that template in it doesnt fire button clicks or anything works in terms of postback.
Has anyone come across this issue before? any thoughts would be helpful, thanks.
- umbraco version is 3.0.6
sorry version is 4.0.3
Render template does *not* support events but simply renders controls as flat html so you'll need a different approach than RenderTemplate for what you're trying. RenderTemplate has never been meant to support the scenario above but was designed to render xslt based templates. Sorry.
in one of my document type, i have fields called box1 box2 box3 for sidebar which you can pick a content to display on the sidebar (contentpicker), any other recommentation for this requirement? they want to pick sidebar boxes for each content diffrently.
thank you
Cem
XSLT macros tend to only call other XSLT macros using RenderTemplate due to this drawback (not much point using a UC macro with little or no .net functionality). UC macros on the other hand can call both types of macro with no such limitations.
How UC macros can call both types of macro with no such limitations? any sample do you have? or method name?
Hi Cem,
A UC macro can call another macro via the <umbraco:macro...> server control (or dynamically added with umbraco.presentation.templateControls.Macro).
Replied to your comment here, where a UC macro renders the content of richtext areas of other nodes, that may contain sub macros, including UC ones which require to be part of the page lifecycle.
HTH,
Hendy
I think this is the best solution suits me.
http://our.umbraco.org/projects/macropicker
is working on a reply...