CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: Date Entered: 5/31/2006 9:34:07 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 6 Views: 37 Favorited: 0 Favorite
7 Items, 1 Pages 1 |< << Go >> >|
"CarlFisher" <>
NewsGroup User
Menu items without NavigateURLs?5/31/2006 9:34:07 PM

0

I am trying to implement a scheme where navigation is split among 2 controls:  Across the top of the page is a menu control that displays only the top-level sitemap nodes (2 levels, including root), in the form of clickable tabs.  Down the left side of the page is a TreeView which acts as a submenu, whose DataSource changes to display the children of the selected top menu item.  Similar to what this fellow describes here: http://forums.asp.net/thread/931021.aspx.  However, I have implemented a custom SiteMapProvider.

I also don't want to navigate to a new page when the user clicks on one of the top menu tabs- I just want to postback so I can update my TreeView submenu, leaving alone whatever may be in the content area.  Therefore, my top-level folders do not have NavigateURLs.

My problem is that when I declare my top Menu as  

StaticDisplayLevels="2" MaximumDynamicDisplayLevels="0"

then my top level folders appear as non-clickable text, preventing me from selecting them.

What am I missing?  Do I need to provide a NavigateURL for the top-level folders?  I tried making them "#", but that's not unique...

Thanks for any help you can provide!

Carl

"CarlFisher" <>
NewsGroup User
Re: Menu items without NavigateURLs?6/5/2006 4:07:07 PM

0

Can anyone help me on this?

Thanks!

"orzeh" <>
NewsGroup User
Re: Menu items without NavigateURLs?6/6/2006 8:42:35 AM

0

hi!

just modify sitemap file:

<siteMapNode url="~/Intro.aspx" title="Main1"  description="">
    <siteMapNode url="~/Default.aspx?page=1" title="Main2" description="" />
    <siteMapNode url="~/Default.aspx?page=2" title="Main2" description="" />
    <siteMapNode url="~/Default.aspx?page=3" title="Main2" description="" />
    <siteMapNode url="~/Default.aspx?page=4" title="Main2" description="" />
    <siteMapNode url="~/Default.aspx?page=5" title="Main2" description="" />
</siteMapNode>

orzeh


code less, think more!
"CarlFisher" <>
NewsGroup User
Re: Menu items without NavigateURLs?6/7/2006 7:15:16 PM

0

Hmm, well I don't have a sitemap file- I'm using a custom SiteMapProvider that gets a feed from a web service.

I worked around the issue by explicitly setting each of the menu items to "selectable" (Items(0) is the root):

For Each temp As MenuItem In topMenu.Items(0).ChildItems
    temp.Selectable = True
Next

But I'd sure like to know the real answer...

Thanks though,

Carl

"orzeh" <>
NewsGroup User
Re: Menu items without NavigateURLs?6/7/2006 7:39:35 PM

0

hi!

all you have to do is set NavigateUrl of each item to the same page.

orzeh


code less, think more!
"CarlFisher" <>
NewsGroup User
Re: Menu items without NavigateURLs?6/7/2006 9:40:27 PM

0

But I don't want to navigate anywhere, I just want to do a postback.  I want to leave untouched whatever page contents is being currently displayed.

Am I missing something?

Thanks, Carl

"orzeh" <>
NewsGroup User
Re: Menu items without NavigateURLs?6/8/2006 9:15:46 AM

0

hi!

ok, this should work:

add TreeNodeDataBound event handler:

protected void TreeView1_TreeNodeDataBound(object sender, TreeNodeEventArgs e)
    {       
        e.Node.NavigateUrl = ClientScript.GetPostBackClientHyperlink( TreeView1,e.Node.Value,false );

    }

then in Page load event handler:
    if ( IsPostBack )
        {
            if ( Request[ "__EVENTTARGET" ].ToString() == "TreeView1" )
            {
                //what node?
                string val = Request[ "__EVENTARGUMENT" ].ToString();
            }
        }

also modify <%@Page> and set EnableEventValidation to false.

orzeh


code less, think more!
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:













sitemap vs xmldatasource: staticselectedstyle not applied - help

menu control: sub menu's change layout when trying to select

menu control not seen properly

change template based on user role

treeview, last selected leaf

can not apply theme/css on <div runat=server>

treeview - client side node removal

about page load

finding sitemapnode by attribute value

pass data from master page to other pages

need of a splitter control/functionality in asp.net page

forms authentication and themes

master pages and page base classes

formating menu items

changing masterpage label from masterpage code behind

can't add button to the page that is using the master page

treeview on master page problems

create website without refreshing

master/child page postback event

nested master pages

skin for a loginview control

masterpage not reading css

how to put focus on textarea in content page?

client script in content pages

master page not showing images through out site

id selector in css; <form> tag in master page problem

contentplacehoder problem? (beta 1)

adding hyperlinks/content to the master page

sitemap navigation and security

theming rounded corner asp:buttons

node values using sitemappath control.

how to modify .aspx page by using content page using asp.net

how to control downloading webpage contents in reuntime

setting the theme for a masterpage

assigning values in masterpages

how to build navigation buttons that do not scroll with the rest of the page?

treeview bug in hovernodestyle?

is there a sample masterpage themes gallery

one master page, multiple sites/soloutions

accesing a masterpage

inherited themes?

autohiding navigation buttons in visual studio 2005 web masterpages.master

applying css to a content page

how do i control one control from another control?

navigation design question, rewrite xml or custom provider?

passing variable from a master page to a content page.

problem with "go back" link

treeview isn't updated from xmldatasource

analyze this: object reference shortcut

master pages and frames

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT