Click here to Skip to main content
14,599,518 members

SharePoint

 
AnswerRe: Sharepoint installation on windows server 2003 Pin
Not Active21-Dec-11 7:43
mentorNot Active21-Dec-11 7:43 
AnswerRe: Sharepoint installation on windows server 2003 Pin
nainakarri28-Dec-11 22:20
Membernainakarri28-Dec-11 22:20 
GeneralRe: Sharepoint installation on windows server 2003 Pin
Not Active29-Dec-11 1:54
mentorNot Active29-Dec-11 1:54 
Questionwant to learn sharepoint. Pin
Bhupendra Chauhan21-Dec-11 0:03
professionalBhupendra Chauhan21-Dec-11 0:03 
AnswerRe: want to learn sharepoint. Pin
coded00721-Dec-11 16:38
professionalcoded00721-Dec-11 16:38 
AnswerRe: want to learn sharepoint. Pin
Not Active21-Dec-11 18:49
mentorNot Active21-Dec-11 18:49 
GeneralRe: want to learn sharepoint. Pin
Bhupendra Chauhan21-Dec-11 23:24
professionalBhupendra Chauhan21-Dec-11 23:24 
QuestionPortalSiteMapProvider is empty with anonymous access Pin
bob.e.baker20-Dec-11 5:48
Memberbob.e.baker20-Dec-11 5:48 
I am trying to use PortalSiteMapProvider to create a tree view Site Map, however, secruity trimming is limiting the results. If you access the page anonymously or with permissions to a grandchild site only, the tree does not build because the provider is empty. I have tried using RunWithElevatedPrivileges with no success. Everything I read about SiteMap providers say the bey default do not use security trimming unless you set the flag to true in the web config. I have verified it is not set.

I am open to all suggestions to include a completlydifferent solution for a treeview sitemap.

I am including a simple version of the code with the treeview removed.

SPSecurity.RunWithElevatedPrivileges(delegate()
{
    // Gets a new security context using SHAREPOINT\system


    using (SPSite site = new SPSite(this.Page.Request.Url.ToString()))
    {
        using (SPWeb thisWeb = site.OpenWeb())
        {
            PortalSiteMapProvider sitemapprovider = (PortalSiteMapProvider)SiteMap.Providers["GlobalNavSiteMapProvider"];

            foreach (SiteMapNode node in sitemapprovider.GetChildNodes(sitemapprovider.TryGetRootNode))
            {
                //Use the child node
                this.Controls.Add(new LiteralControl(node.Title + "<br>"));
                this.Controls.Add(new LiteralControl(node.Key + "<br>"));
                this.Controls.Add(new LiteralControl(node.Url + "<br>"));

            }
        }
    }
});

QuestionScript for retrieving .tif files Pin
Vigneswaran.M20-Dec-11 0:45
MemberVigneswaran.M20-Dec-11 0:45 
QuestionJSGrid column merging in sharepoint Pin
sidhu0919-Dec-11 18:40
Membersidhu0919-Dec-11 18:40 
QuestionHow to add RecurrenceDataControl Pin
ElenXYZ15-Dec-11 20:18
MemberElenXYZ15-Dec-11 20:18 
AnswerRe: How to add RecurrenceDataControl Pin
ElenXYZ16-Dec-11 0:45
MemberElenXYZ16-Dec-11 0:45 
QuestionManual edits then upload to SharePoint server Pin
john john mackey15-Dec-11 8:03
Memberjohn john mackey15-Dec-11 8:03 
Questionhow to restrict user to upload only .docx or doc files in document library Pin
developerit13-Dec-11 20:40
Memberdeveloperit13-Dec-11 20:40 
AnswerRe: how to restrict user to upload only .docx or doc files in document library Pin
Manoj_Leo14-Dec-11 21:17
MemberManoj_Leo14-Dec-11 21:17 
QuestionSlideshow+ V2.5 in Christmas Pin
Lisa52013-Dec-11 20:16
MemberLisa52013-Dec-11 20:16 
QuestionWhat should I know before learning Sharepoint? Pin
Balakrishnan Dhinakaran13-Dec-11 20:10
professionalBalakrishnan Dhinakaran13-Dec-11 20:10 
AnswerRe: What should I know before learning Sharepoint? Pin
nainakarri14-Dec-11 22:07
Membernainakarri14-Dec-11 22:07 
AnswerRe: What should I know before learning Sharepoint? Pin
AmirHashemZadeh15-Dec-11 1:15
MemberAmirHashemZadeh15-Dec-11 1:15 
QuestionShow customised page after login in wss3.0 Pin
nainakarri13-Dec-11 0:18
Membernainakarri13-Dec-11 0:18 
QuestionChange a webpart from another webpart Pin
tibinthomas12-Dec-11 23:32
Membertibinthomas12-Dec-11 23:32 
AnswerRe: Change a webpart from another webpart Pin
Manoj_Leo14-Dec-11 21:23
MemberManoj_Leo14-Dec-11 21:23 
AnswerRe: Change a webpart from another webpart Pin
Manoj_Leo14-Dec-11 21:23
MemberManoj_Leo14-Dec-11 21:23 
GeneralRe: Change a webpart from another webpart Pin
Not Active15-Dec-11 0:19
mentorNot Active15-Dec-11 0:19 
AnswerRe: Change a webpart from another webpart Pin
Not Active15-Dec-11 0:18
mentorNot Active15-Dec-11 0:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.