dynamically changing the sitemap to treeview

Hi How to change the Sitemaps for the treeview

Page 1 of 1

2 Replies - 1113 Views - Last Post: 26 June 2009 - 10:49 PM Rate Topic: -----

#1 nhrakesh   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 24-June 09

dynamically changing the sitemap to treeview

Posted 25 June 2009 - 05:25 AM

hi all,

In my project iam using treeview.Depending upon users login Node should be hide or change if u have any ideas plz send me bye
Is This A Good Question/Topic? 0
  • +

Replies To: dynamically changing the sitemap to treeview

#2 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: dynamically changing the sitemap to treeview

Posted 25 June 2009 - 08:51 AM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 nhrakesh   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 24-June 09

Re: dynamically changing the sitemap to treeview

Posted 26 June 2009 - 10:49 PM

Post your code like this: :code: this is the code in web.sitemap
<siteMapNode title="Activity" url="~/CM/Activities.aspx?Action=Add#" description="Activity">
<siteMapNode title="Add Activity" url="~/CM/Activities.aspx?Action=Add" description="Add Activity" roles="Admin,SuperUser,Supervisor"></siteMapNode>
<siteMapNode title="View Ativities" url="~/CM/Activities.aspx?Action=View" description="View Activities" roles ="Admin,SuperUser,Supervisor"></siteMapNode>
<siteMapNode title="Define WorkBreakDown" url="~/CM/WorkBreakDown.aspx" description="Work BreakDown"></siteMapNode>
</siteMapNode>

<siteMapNode title="Activity Template" url="~/CM/Template.aspx?Action=Add#" description="Activity Template">
<siteMapNode title="Add Template" url="~/CM/Template.aspx?Action=Add" description="Add Template"></siteMapNode>
<siteMapNode title="View Template" url="~/CM/Template.aspx?Action=View" description="View Template"></siteMapNode>
</siteMapNode>


[code]
This is the Code in the Web.Config
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="MMXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="~/MM/MM.sitemap" securityTrimmingEnabled="true"/>
<!--<add name="MMAdminXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="~/MM/MMAdmin.sitemap" securityTrimmingEnabled="true"/>-->
<add name="XmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="Web.sitemap" securityTrimmingEnabled="true"/>
<add name="CMXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="~/CM/CM.sitemap" securityTrimmingEnabled="true"/>
<add name="FDXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="~/Finance/FD.sitemap" securityTrimmingEnabled="true"/>
<add name="HRXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="~/HR/HR.sitemap" securityTrimmingEnabled="true"/>
<add name="PAXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="~/PA/PA.sitemap" securityTrimmingEnabled="true"/>
<add name="CAXmlSiteMapProvider" description="SiteMap provider which reads in .sitemap XML files." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="~/Admin/CA.sitemap" securityTrimmingEnabled="true"/>
</providers>
</siteMap>

Thanks.
[/quote]
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1