Umbraco/Samples and Articles/Dot Net Controls/Using Querystring Parameters In UserControls

From Wikibooks, open books for an open world
Jump to navigation Jump to search

If you use usercontrols, wrapped in macros, in templates, this trick could save you a lot of time.

This is achieved by using squarebrackets and a "@".

Syntax: <?UMBRACO_MACRO macroAlias="myAlias" myProperty="[@parameter]" />

Sample: <?UMBRACO_MACRO macroAlias="myAlias" myProperty="[@id]" />