private string GetParameterValue(string key)
{
Sublayout sublayout = uc != null ? (uc.Parent as Sublayout) : (this.Parent as Sublayout);
if(sublayout != null)
{
if(!String.IsNullOrEmpty(sublayout.Parameters))
{
Database db = Sitecore.Context.Database;
NameValueCollection parameters = Sitecore.Web.WebUtil.ParseUrlParameters(sublayout.Parameters);
if(parameters != null && parameters[key] != null)
{
return parameters[key].ToString();
}
}
}
return String.Empty;
}