Open main menu

Wikibooks β

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

< Umbraco‎ | Samples and Articles‎ | Dot Net Controls

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]" />