By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,403 Members | 1,702 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,403 IT Pros & Developers. It's quick & easy.

question about sitemap architecture

P: n/a
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.

--
Message posted via http://www.dotnetmonster.com
Jan 10 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi Andy,

check out http://msdn.microsoft.com/msdnmag/code05.aspx, it implements
a custom SiteMapProvider.
Btw, instead of calling to your SiteMapProvider directly, use a
SiteMapDataSource control and set its Provider property to the name of
your provider. Before doing so, you should register your provider in
the web.config file.

Grtz,

Wouter van Vugt
Trainer - Info Support
http://blogs.infosupport.com/wouterv

Jan 10 '06 #2

P: n/a
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.

Wouter van Vugt wrote:
Hi Andy,

check out http://msdn.microsoft.com/msdnmag/code05.aspx, it implements
a custom SiteMapProvider.
Btw, instead of calling to your SiteMapProvider directly, use a
SiteMapDataSource control and set its Provider property to the name of
your provider. Before doing so, you should register your provider in
the web.config file.

Grtz,

Wouter van Vugt
Trainer - Info Support
http://blogs.infosupport.com/wouterv


--
Message posted via http://www.dotnetmonster.com
Jan 10 '06 #3

P: n/a
I don't see the article you mentioned. I see a membership in November. Can
you clarify?

Wouter van Vugt wrote:
Hi Andy,

check out http://msdn.microsoft.com/msdnmag/code05.aspx, it implements
a custom SiteMapProvider.
Btw, instead of calling to your SiteMapProvider directly, use a
SiteMapDataSource control and set its Provider property to the name of
your provider. Before doing so, you should register your provider in
the web.config file.

Grtz,

Wouter van Vugt
Trainer - Info Support
http://blogs.infosupport.com/wouterv


--
Message posted via http://www.dotnetmonster.com
Jan 10 '06 #4

P: n/a
Sorry, wrong link. You'd best read up here:
http://msdn2.microsoft.com/en-us/lib...pprovider.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

Jan 11 '06 #5

P: n/a
Thank you for your help!

Wouter van Vugt wrote:
Sorry, wrong link. You'd best read up here:
http://msdn2.microsoft.com/en-us/lib...pprovider.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


--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200601/1
Jan 11 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.