I run Umbraco 4.5.2 and that, I guess, means that I don't have Razor. I would like to simply display a request parameter value in a page, i.e. in the template. It feels a bit silly to create an XSLT macro to just get the request parameter and display it. The old "classic" ASP way would be something like:
<%= Request("myParam")%>
I believe that it would be an easy thing with Razor, but is there a way to easily do it in 4.5.2?
Get request parameter without XSLT and Razor?
Hi,
I run Umbraco 4.5.2 and that, I guess, means that I don't have Razor. I would like to simply display a request parameter value in a page, i.e. in the template. It feels a bit silly to create an XSLT macro to just get the request parameter and display it. The old "classic" ASP way would be something like:
<%= Request("myParam")%>
I believe that it would be an easy thing with Razor, but is there a way to easily do it in 4.5.2?
/Jonas
Hi Jonas,
You could use Inline XSLT on the umbraco:Item tag:
The pageName field won't actually be shown since the XSLT doesn't use it anywhere, it's just there as a placeholder.
-Tom
is working on a reply...