Last post Jun 02, 2007 04:59 AM by alvinz_c
Apr 01, 2007 12:56 AM|liorlankril|LINK
I have a web part code (in c#) that try to get to specific List that appear in several Webs (Sub areas) in the portsl. the List name is equal in all instances of the list (called "MyList").
In my code I try to search all instance of this List:
SPSite site = SPControl.GetContextSite(Context);
SPWebCollection allwebs =site.AllWebs;
foreach (SPWeb singalweb in allwebs)
SPListCollection lists =singalweb.Lists;
//Search the specific list ("MyList").
Or this code:
The problem is:
When I arrive to Sub area (Web) with this URL:
I can find the specific list
But when the URL is type of:
http://ServerName/C2/AreaName (Or C1...and so)
I get a prompt of User and Password to the server.. It's like I dont have permmision to C1,C2 and so....
It's work only if I'm Administrator on the server (but I dont want all the portal's users to be Administrators on the server).
What is the solution?? How to find all instance of the specific list??
Jun 02, 2007 04:59 AM|alvinz_c|LINK
Make sure the all the relevant master pages, page layouts and images are published to the users in the sub web.
Hope this helps..