CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/28/2007 1:11:58 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 67 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
r2007
Asp.Net User
Maintaining tabs with nested sitemap nodes12/28/2007 1:11:58 AM

0/0

Hello,

What I would like to accomplish is to have tabs for various sections of a site displayed horizontally (and generated from a SiteMap because this will use membership, roles etc to access various pages), when a tab is selected all the pages within that tab (siteMapNode)s are displayed in another navigation menu (that comes from the same SiteMap) that will run vertically.

I was able to have the 2 menus work but without the tabbed effect.  I guess an example of this is asp.net, when you navigate to asp.net/learn/, learn is selected and when you go deeper, say to: asp.net/learn/moving-to-asp.net-2.0/ the learn tab remains selected.  I know they use <li>s on there but that I want it to all work from a SiteMap.

Hope I explained this well enough,

Thanks

Rinze
Asp.Net User
Re: Maintaining tabs with nested sitemap nodes12/28/2007 12:12:53 PM

0/0

It's clear what you are trying to do, but not so clear what part of it isn't working.

You are probably using a menu control and a treeview control. Using the expanddepth property you limit the nodelevels displayed by the menu to 1.

You say the menu's both work, so is it just the marking of the active tab that isn't working? Are you using the XmlSiteMapProvider? If so, I think it marks the all the nodes up the three from the active node. Have you checked the rendered html output to see what's happening?

Also, to achieve the ul > li structure they use on asp.net u should have a look at the CSS Friendly Control Adapters


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
r2007
Asp.Net User
Re: Maintaining tabs with nested sitemap nodes12/28/2007 6:37:36 PM

0/0

well.. now what I think is the best way to do this is by using a Repeater control that will be bound to another datasource which will show only the leve I want... the issue is that I am not sure how to format the <itemstemplate> section of the repeater control so that it will: display the item if the user is allowed to see it based on their permission, then if it it IsDecendentOf that it will format it for the current node.. this is where I am stuck right now'

 Thanks

Rinze
Asp.Net User
Re: Maintaining tabs with nested sitemap nodes12/30/2007 12:03:57 PM

0/0

I would strongly advice on using a menu for the tabbed navigation and a treeview for the vertical navigation.

As stated earlier, you can use the expanddepth property to limit the nodelevels displayed to just one. Then, use the SitemapDatasource control properties bound to your treeview to skip the first nodelevel (because this is the level shown by your tabs). The property is called something like 'StartingNodeOffset'


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
r2007
Asp.Net User
Re: Maintaining tabs with nested sitemap nodes12/30/2007 4:26:05 PM

0/0

I see what you are saying but in the situation where someone navigates to a sub node of one of the menu nodes, the menu node is no longer selected and no longer looks like it's in the same tab.

I believe there is an easier way to do this.. but this article actually works: http://www.devx.com/asp/Article/31889/1763/page/1

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


Free Download:


Web:
Popular Science Magazine (PopSci.com) Case Study | drupal.org The "current issue" node type represents an issue of the magazine. .... we received required a nested set of tabs that could function to filter the content ...
PHP | urlgreyhot Drupal tip: Stripping out nested divs in views blocks ... The generator takes a file with tab separated values as input -- 1 line for each node of a sitemap ...
Microsoft Web Platform - Microsoft Expression Web Essentials ... We have our site map node and inside that we have a couple of site map nodes nested inside that. This is where we’re going to put in the information for our ...
Nine ASP.NET Site Navigation Problem Solutions: Part 1 Figure 1: Image-oriented Navigation: The "tabs" in the page shown in this figure are .... XmlSiteMapProvider requires that sitemap nodes have unique URLs. ...
Popular Science Case Study | pingVision Apr 20, 2008 ... If a referenced image node isn't specifically placed within the .... we received required a nested set of tabs that could function to filter ...
hide Sitemap Menu nodes - Asp net Blog hide Sitemap Menu nodes . Answer10:Hi,Thanks for your code, I have a test using it and reproduced your problem. But I have a try to use the solution that is ...
SSDN - tabs converted to spaces - Any idea on how to maintain this whitespace other ways? Thanks in advance. ... 1 ) don't place tabs into attribute values (e.g. use a text node) ...
CodeProject: Programmatically using ADO.NET and XML. Free source ... Sep 15, 2004 ... In other words, it does not maintain any database server cursors. .... The key point to generate nested XML nodes is to setup a DataRelation ...
Nested master page issues - Asp net Blog Nested master page issues. ... JQuery tabs lose event binding after Ajax for subm. ... Dynamically adding a Collapsable Panel · hide Sitemap Menu nodes ...
Page 5 - XML Parsing With DOM and Xerces (part 1) If the node is an element, the element name is printed to the standard output ... Finally, the very simple FormatTree() method checks the value of the tab ...




Search This Site:










utilising roles in generating a menu

runtime determination imagebutton or button

include labels in a master page that are assigned text by pages

using an html template in an asp.net site

no "select master page" on new item dialog

how to create nodes dynamically for treeview control using c#

using menu as site navigation

master page/content page problem

unable to reach the menuitemclick event handler

protect folders and nodes by role

menu control query!

order page events (with master & child)

finding folder sitemap file

listing content place holderers of a masterpage???

treeview - hide node based on security roles with querystring urls

is asp:menu seo friendly?

need to manually refresh page after an event is fired

problems with internet explorer 7

passing parameter from one user control to another

difference between master page and css?

table height issues master page based pages

resize or hide part of an asp.net page using a splitter

trying to initiate a pop up page.

custom sitemap provider, problem setting staticmenuitemstyle in menu control

how to use map property in image control inasp.net 2.0

bizarre master page table "interference"

using images within .asp menu control

treeview asp.net 2.0 api reference?

master page hell

changing page.title when header isn't runat=server

  Privacy | Contact Us
All Times Are GMT