question about sitemap architecture

  • Thread starter Thread starter Andy Sutorius via DotNetMonster.com
  • Start date Start date
A

Andy Sutorius via DotNetMonster.com

I don't know if what I am trying to do can be done with sitemap. Let me
bounce this arch. off of you and give me your opinion. I have a default.aspx
that i have a treeview/web.sitemap in. I have a class file that inherits from
StaticSiteMapProvider. I call initialize from the default.aspx.cs and pass in
the connection string. I then call BuildSiteMap which is in the class from
default.aspx.cs. In BuildSiteMap I want to walk the child nodes and check the
roles in the sitemap. If the roles equal a bit setting from a field in a
table called superuser then I want to display the menu category. I am running
into all types of different errors almost as if what I am trying to do can't
be done.
 
I pulled up SiteMapDataSource in the Obj. Browser. Based on the articles I
have read I thought SMDS was to be used when you stored the sitemap in a
database, which I am not doing. Am I incorrect?

public class SiteMapDataSource : System.Web.UI.HierarchicalDataSourceControl
Member of System.Web.UI.WebControls

Summary:
Provides a data source control that Web server controls and other controls
can use to bind to hierarchical site map data.
 
I don't see the article you mentioned. I see a membership in November. Can
you clarify?
 
Sorry, wrong link. You'd best read up here:
http://msdn2.microsoft.com/en-us/library/system.web.sitemapprovider.aspx

Basically, the architecture is as follows:

Control(TreeView, Menu) --> SiteMapDataSource --> SiteMapProvider -->
Data(DB, Xml...)

The sitemapdatasource is a new DataSourceControl, which allows
declarative databinding. It gets
its data from a SiteMapProvider(configure in web.config), which in turn
reads a database or XML file or something similar.

Grtz, Wouter
 
Thank you for your help!
Sorry, wrong link. You'd best read up here:
http://msdn2.microsoft.com/en-us/library/system.web.sitemapprovider.aspx

Basically, the architecture is as follows:

Control(TreeView, Menu) --> SiteMapDataSource --> SiteMapProvider -->
Data(DB, Xml...)

The sitemapdatasource is a new DataSourceControl, which allows
declarative databinding. It gets
its data from a SiteMapProvider(configure in web.config), which in turn
reads a database or XML file or something similar.

Grtz, Wouter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top