/ Published in: C#

Gets parameters set on the sublayout in presentation details as a property, just use parameters["paramname"] to get a value.
Needs ref to Sitecore.Kernel.dll and "using Sitecore.Web;".
Needs ref to Sitecore.Kernel.dll and "using Sitecore.Web;".
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private NameValueCollection _parameters = null; private NameValueCollection parameters { get { if (_parameters == null) { if (String.IsNullOrEmpty(this.Attributes["sc_parameters"])) else _parameters = WebUtil.ParseUrlParameters(this.Attributes["sc_parameters"]); } return _parameters; } }
Comments
