Hi
I have a user control which is basically an AJAX UpdatePanel that has a drop down list of pages on my site. When a user selects a page then the content area of the page should refresh with the content from that page:
Code:
string macro = "<?UMBRACO_MACRO macroAlias=\"_XSLTJLLStoreGuideCategory\" ></?UMBRACO_MACRO>";
Literal1.Text = umbraco.library.RenderMacroContent(macro, Convert.ToInt32( DropDownList1.SelectedValue.ToString()));
The trouble is that even though i am passing in a different page id to that of the original page when the XSLT is applied it applies the page id of the original page, e.g. the value of $currentPage/@id is that of the main page and not that passed in by RenderMacroContent.
Why is this? And is there any way around it?
Thanks
Dan