Muhammad Masood
Hi HsuGotaQ,
I have also needed this webpart... and I developed it using above code.
It works fine... but one issue is that it lists all subsites but not list sites under specified site.
The modified version of the above code is:
SPWeb _site = new SPSite(http://myportal-server:1234/SiteDirectory);
_allWebs = _site.AllWebs;
foreach(SPWeb _web in _allWebs)
{
/*
my code is here...
*/
}
the above code list all sites not under the specified site directory.
NOTE: The above URL can be local or other portal server as well.
Any help please....
Thanks.