If i have a macro like this... <umbraco:Macro customerID="" Alias="bev0Link" runat="server"></umbraco:Macro>
i can get the value for customerID by pull it from the URL querystring like this: <%=request.querystring("cid")%>
but somehow the macro does not like it, i try customerID='<%=request.querystring("cid")%>' and customerID="<%=request.querystring('cid')%>" with no success. what am i missing ?
how to access URL querystring inside a macro
If i have a macro like this... <umbraco:Macro customerID="" Alias="bev0Link" runat="server"></umbraco:Macro>
i can get the value for customerID by pull it from the URL querystring like this: <%=request.querystring("cid")%>
but somehow the macro does not like it, i try customerID='<%=request.querystring("cid")%>' and customerID="<%=request.querystring('cid')%>" with no success. what am i missing ?
please help
Hi bev0 (!)
You can use the bracket syntax to send a value from QueryString into your macro - like this:
This page has more info on this 'trick' : advanced-macro-parameter-syntax
/Chriztian
If you're in xslt, you could use:
or:
is working on a reply...