Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Sub webs List (Sub area)?

Status
Not open for further replies.

liorlankril

Programmer
Nov 5, 2005
46
IL
I have c# code WebPart that contain this code:

SPSite site = SPControl.GetContextSite(Context);
SPWeb newsWeb= site.AllWebs["News"];

"newsWeb" hold the area (Web) of News.
I want to get the list of all sub webs (sub area) that under it!!!!

How to do it????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top