This question is locked. New answers and comments are not allowed.
Consider the following code...
The first part of the if statement should show as an error as you can't apply the operator "==" to System.Xml.Linq.XAttribute and String.
Apparently.
--
Stuart
foreach
(XElement e
in
GetGroups(DataList))
{
if
(e.Attribute(
"Name"
) == PageName || e.Attribute(
"Name"
) ==
"Generic"
)
{
PopulateList(e, ListToPopulate);
}
}
Apparently.
--
Stuart