I want to get all webs including it's subwebs.
How to achieve ?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Its all happening in SharePoint Manager, just download source code and look at code to get what you want.
Hope it helps :).
This is one solution, which will return all sites including its subsite.
SPWebCollection allwebcoll = spsite.AllWebs;