Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

bob e baker

@bob e baker
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • PortalSiteMapProvider is empty with anonymous access
    B bob e baker

    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>"));
    
            }
        }
    }
    

    });

    SharePoint sharepoint data-structures security announcement

  • Code Smith opinions
    B bob e baker

    I agree completely with Mike's post. It is a great example of the old cliché of "you get out of it what you put in it". The only thing I would add is the team aspect. A common problem and advatage when working with a team is the varied experience and backgrounds each team member brings to the team. While it allows for different perspectives on the same problem to generate the best solution, each developer has his or her own style or strength. If the situation is not managed you can end up with quality and compatability issues accross your products and services. Extreame example of course. Code generators like Code Smith allow you to pull your resources together and create templates that provide consistant quality code across your projects while still retaining the ability to manage your resources seperatly.

    The Lounge collaboration question discussion learning

  • What are the benefits of PKI
    B bob e baker

    I have a web application on a secure corporate Intranet. The web application is using Integrated windows Authentication to identify the user for "single sign on". I have a request to implement PKI on the application. I am looking for some pros and conns. What is the value added and does the value added overcome any user experience problems? Bob Baker

    Web Development question design security
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups