Click here to Skip to main content
14,692,052 members
Home » Discussions » SharePoint
   

SharePoint

 
AnswerRe: Sharepoint installation on windows server 2003 Pin
Not Active21-Dec-11 8:43
mentorNot Active21-Dec-11 8:43 
AnswerRe: Sharepoint installation on windows server 2003 Pin
nainakarri28-Dec-11 23:20
Membernainakarri28-Dec-11 23:20 
GeneralRe: Sharepoint installation on windows server 2003 Pin
Not Active29-Dec-11 2:54
mentorNot Active29-Dec-11 2:54 
Questionwant to learn sharepoint. Pin
Bhupendra Chauhan21-Dec-11 1:03
professionalBhupendra Chauhan21-Dec-11 1:03 
AnswerRe: want to learn sharepoint. Pin
coded00721-Dec-11 17:38
professionalcoded00721-Dec-11 17:38 
AnswerRe: want to learn sharepoint. Pin
Not Active21-Dec-11 19:49
mentorNot Active21-Dec-11 19:49 
GeneralRe: want to learn sharepoint. Pin
Bhupendra Chauhan22-Dec-11 0:24
professionalBhupendra Chauhan22-Dec-11 0:24 
QuestionPortalSiteMapProvider is empty with anonymous access Pin
bob.e.baker20-Dec-11 6:48
Memberbob.e.baker20-Dec-11 6: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 1:45
MemberVigneswaran.M20-Dec-11 1:45 
QuestionJSGrid column merging in sharepoint Pin
sidhu0919-Dec-11 19:40
Membersidhu0919-Dec-11 19:40 
QuestionHow to add RecurrenceDataControl Pin
ElenXYZ15-Dec-11 21:18
MemberElenXYZ15-Dec-11 21:18 
AnswerRe: How to add RecurrenceDataControl Pin
ElenXYZ16-Dec-11 1:45
MemberElenXYZ16-Dec-11 1:45 
QuestionManual edits then upload to SharePoint server Pin
john john mackey15-Dec-11 9:03
Memberjohn john mackey15-Dec-11 9:03 
Questionhow to restrict user to upload only .docx or doc files in document library Pin
developerit13-Dec-11 21:40
Memberdeveloperit13-Dec-11 21:40 
AnswerRe: how to restrict user to upload only .docx or doc files in document library Pin
Manoj_Leo14-Dec-11 22:17
MemberManoj_Leo14-Dec-11 22:17 
QuestionSlideshow+ V2.5 in Christmas Pin
Lisa52013-Dec-11 21:16
MemberLisa52013-Dec-11 21:16 
QuestionWhat should I know before learning Sharepoint? Pin
Balakrishnan Dhinakaran13-Dec-11 21:10
professionalBalakrishnan Dhinakaran13-Dec-11 21:10 
AnswerRe: What should I know before learning Sharepoint? Pin
nainakarri14-Dec-11 23:07
Membernainakarri14-Dec-11 23:07 
AnswerRe: What should I know before learning Sharepoint? Pin
AmirHashemZadeh15-Dec-11 2:15
MemberAmirHashemZadeh15-Dec-11 2:15 
QuestionShow customised page after login in wss3.0 Pin
nainakarri13-Dec-11 1:18
Membernainakarri13-Dec-11 1:18 
QuestionChange a webpart from another webpart Pin
tibinthomas13-Dec-11 0:32
Membertibinthomas13-Dec-11 0:32 
AnswerRe: Change a webpart from another webpart Pin
Manoj_Leo14-Dec-11 22:23
MemberManoj_Leo14-Dec-11 22:23 
AnswerRe: Change a webpart from another webpart Pin
Manoj_Leo14-Dec-11 22:23
MemberManoj_Leo14-Dec-11 22:23 
GeneralRe: Change a webpart from another webpart Pin
Not Active15-Dec-11 1:19
mentorNot Active15-Dec-11 1:19 
AnswerRe: Change a webpart from another webpart Pin
Not Active15-Dec-11 1:18
mentorNot Active15-Dec-11 1: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.