This project is read-only.
1
Vote

Error in webpart

description

When I dropped the webpart onto my rootweb it only displayed one item and not the subwebs. Looking at the code I believe you have an error in GlobalMethods.GetSiteListing(...) - the query should be:

query.Query = "" + siteGUID.ToString().ToUpper() + "" + siteGUID.ToString().ToUpper() + "";

comments

Sparklehorse wrote Nov 28, 2012 at 5:47 PM

The pasting stripped out the query so I'll try again with angular brackets replaced by square brackets:

query.Query = "[Where][Or][Eq][FieldRef Name='SiteID'/][Value Type='Text']" + siteGUID.ToString().ToUpper() + "[/Value][/Eq][Eq][FieldRef Name='ParentWebID'/][Value Type='Text']" + siteGUID.ToString().ToUpper() + "[/Value][/Eq][/Or][/Where]";

wrote Feb 14, 2013 at 8:40 PM