views:

48

answers:

2

Hi all:

I want to ask is it possible to update a Sharepoint web's lists and all its items' URLs if I call an update on the web's url? If so, how can I do so?

e.g.

web.Name = "newWebName";
web.Update();

The above only changed the base web's url. But the url of its lists remain unchanged.

Thanks.

+1  A: 

I don't have a SharePoint site to try this, but the ServerRelativeUrl property of SPWeb can be set, so this is a good candidate for what you are trying to do.

Timores
A: 

Updating of the web name will not cause a problem with the lists within the web, hence there was no need to update each individual item's url after changing their web's URL within an AllowUnsafeUpdate.

BeraCim