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 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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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,...
|
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...
| |