AJAX to RenderMacroContent for different pages Options
danimal
Posted: Sunday, September 07, 2008 4:49:11 PM
Rank: Enthusiast

Joined: 2/20/2008
Posts: 38
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
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.