CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/24/2006 8:28:34 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
kokomo
Asp.Net User
siteMapNode with custom attrbiutes (SQLSiteMapProvider)7/24/2006 8:28:34 PM

0/0

I am currently using a slightly modified and customized version of the SqlSiteMapProvider code found on Wicked Code of  MSDN (http://msdn.microsoft.com/msdnmag/issues/05/06/WickedCode/). I am attempting to add a custom attribute to the node upon creation; can anyone tell how I can do this. I have attempted to use the 'attributes' (NameValueCollection) in the constructor with no luck.
Cheers
CarlFisher
Asp.Net User
Re: siteMapNode with custom attrbiutes (SQLSiteMapProvider)9/6/2006 6:43:46 PM

0/0

Use the Item property to add custom attributes to your SiteMapNodes- here's a snippet from my custom provider:

        ' Create the SiteMapNode
        itemNode = New SiteMapNode(Me, itemID, navigateUrl, itemName)

        ' Add additional info to sitemap node
        itemNode.Item("itemType") = itemType
        itemNode.Item("itemUrl") = itemUrl

Then you can access your attibutes in the same fashion:

        Dim currNode As SiteMapNode = SiteMap.CurrentNode
        reportType = currNode.Item("itemType")
        reportUrl = currNode.Item("itemUrl")

Hope that helps.

Carl

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
siteMapNode with custom attrbiutes (SQLSiteMapProvider) - ASP.NET ... siteMapNode with custom attrbiutes (SQLSiteMapProvider). Last post 09-06-2006 2: 43 PM by CarlFisher. 1 replies. Sort Posts: ...
Add custom attributes to SQLsitemapprovider - ASP.NET Forums Re: Add custom attributes to SQLsitemapprovider ... The SiteMapNode constructor is overloaded and one of the overloads takes 7 parameters, the 6th of which ...
SQL Server Forums - add custom attributes to SqlSiteMapProvider add custom attributes to SqlSiteMapProvider, New Topic · Reply to Topic .... Create the root SiteMapNode and add it to the site map ...
Wicked Code: The SQL Site Map Provider You've Been Waiting For The June 2005 installment of Wicked Code presented one solution in the form of a custom site map provider named SqlSiteMapProvider. ...
Wicked Code: Power Programming Tips for ASP.NET 2.0 Figure 1 contains the source code for a custom site map provider named SqlSiteMapProvider that retrieves site map information from a SQL Server™ database. ...
MJJames - Web Developer: More ASP.Net Antics - using the Site ... May 20, 2007 ... When I looked at the schema for the sitemap navigation, Web.sitemap XML schema, Microsoft talk about being able to store custom attributes ...
Duvida SqlSiteMapProvider private SiteMapNode CreateSiteMapNodeFromDataReader(DbDataReader reader) .... Uncomment this line to customize maxJsonLength and add a custom converter --> ...
Inside Microsoft: Site Maps In ASP.NET 2.0: A Primer You can nest elements inside of other elements to reflect the ..... For the SqlSiteMapProvider , I’ll use a custom attribute of ...
using System; using System.Collections.Generic; using System ... and based off of the SqlSiteMapProvider implementation found at ... base. Initialize(name, attributes);. // init custom attributes ...
Safari Books Online - 9780768680256 - ASP.NET 3.5 Unleashed Next, you explore the SiteMap and SiteMapNode classes. ... The second custom Site Map provider—the SqlSiteMapProvider—enables you to store a Site Map in a ...




Search This Site:










customizing the required data to register in my website.

how do you change the border color when mouse hover over a linkbutton?

access denied launching word

mk.bat

anyone decode this?

asp .net web site project template

what runs first: treeview select_change() or page_load()?

determining whethere dataset is null

visual studio 2005 web deployment project - unique version for each dll

how to best prepare for the future

programatically send file to ftp server

gallery module install fails - dnn 3.1 on godaddy

how do i check if there is result in database

cookies in class

calendar recurrence patterns

what is "iis 6.0 native mode"???

some error is not catched by application_error

how to expand a tree node when it's checked?

how to simulate treeview checkbox as radio button?

remove href or oncommand attributes with control?

function in asp.net 2.0

2 database questions: closing connections

project with wap, precompile?

system.nullreferenceexception

using "username" in query

aspcompact

app_code question

why the control name always get duplicated?

how to show c# icons in code window

photos displayed as links

 
All Times Are GMT