public void AddHtmlAttribute(string scope, string attributeName, string attributeValue)
{
SortedDictionary<string, string> attributes = new SortedDictionary<string, string>();
if (_htmlAttributes.ContainsKey(scope))
{
attributes = new SortedDictionary<string, string>(_htmlAttributes[scope]);
}
else
{
attributes = new SortedDictionary<string, string>();
}
attributes[attributeName] = attributeValue;
_htmlAttributes[scope] = attributes;
}
i keep on receiving this error
System.ArgumentException: 'An item with the same key has already been added. Key: [body, System.Collections.Generic.SortedDictionary`2[System.String,System.String]]'
Metronic_asp.net-core_v8.2.8
Hi,
Sorry for the late reply.
We've double-checked this version but are still unable to reproduce the issue. Could you provide detailed steps to help us replicate the error?
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi,
Sorry for the late reply.
We checked the latest Metronic version and were unable to reproduce this error.
Could you please clarify which Metronic version you are using?
Also, please let us know if there are any specific steps to reproduce this error.
Regards,
Lauris Stepanovs,
Keenthemes Support Team