473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

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 1147
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: johnb41 | last post by:
I want to create a web.sitemap file that represents a menu, but I just can't figure this out! I need multiple "top level" menu items. Like "Home", "Support", "Contact Us", etc. Under some of...
4
by: Andy Sutorius via DotNetMonster.com | last post by:
I am creating a custom sitemap and when I run the site I get the following error and the debugger trips on line 28 of the code below. Can someone explain why I am getting this error and how to...
4
by: shapper | last post by:
Hello, I have 2 questions about Asp.Net 2.0 web.sitemap: 1. Where can I find the list of all siteMapNode attributes? I looked eveywhere and couldn't find it. 2. I created a Web.sitemap...
4
by: shapper | last post by:
Hello, I am trying to convert an Asp.Net 2.0 XML sitemap file to a Google's sitemap file. I am posting the formats of both files. 1. How can I do the conversion? 2. And can I use an...
5
by: Tim Mackey | last post by:
hi, i have put my web.sitemap in /App_Data so i can edit it programatically via a web admin page, inheriting the modify permissions from the App_Data folder etc. i was hoping the provider would...
2
by: Bob | last post by:
Hi, is it possible to use several web.sitemap files in one application (e.g. web2.sitemap, ..)? If yes, how to tell the Menu control to use web2.sitemap instead of web.sitemap? Thanks Bob
11
by: digitalcolony | last post by:
I had the .XML extension mapped to the ASP.NET DLL. And then I updated the web.config as such. <httpHandlers> <add verb="*" path="sitemap.xml" type="HttpExtensions.SitemapHandler"/ And it...
1
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi guys, So the ever-lasting problem has remained until now - how to create a dynamic sitemap from information stored in a database. Microsoft's MSDN magazine covered how to do this using a...
1
by: VB Programmer | last post by:
Using ASP.NET 2.0 with Memberships. I have 2 folders, admin and client. Each folder has a sitemap file, admin.sitemap and client.sitemap, in the appropriate directory. I have a master page...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.