One of the popular questions about Sitecore is how to get sublayout parameters. Sitecore 5 way of doing that involves advanced API – parsing layout definition for the current item, finding the rendering item, etc.
Sitecore 6 makes this simple enough to remember – the parameter string is stored as a “sc_parameters” attribute of the sublayout.
string rawParameters = Attributes[“sc_parameters”];NameValueCollection parameters = Sitecore.Web.WebUtil.ParseUrlParameters(rawParameters);
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.