468,294 Members | 1,942 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,294 developers. It's quick & easy.

question about sitemap architecture

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
5 1062
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
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
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
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
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.

Similar topics

1 post views Thread by johnb41 | last post: by
4 posts views Thread by Andy Sutorius via DotNetMonster.com | last post: by
4 posts views Thread by shapper | last post: by
4 posts views Thread by shapper | last post: by
5 posts views Thread by Tim Mackey | last post: by
2 posts views Thread by Bob | last post: by
11 posts views Thread by digitalcolony | last post: by
1 post views Thread by VB Programmer | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.