CodeVerge.Net Beta


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




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: 1/28/2008 2:33:34 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 51 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"satisha_n" <>
NewsGroup User
Getting NavigateUrl from the Menu Control1/28/2008 2:33:34 PM

0

Hi,

I am using a menu control in my Master page like this

<asp:Menu ID="Menu1" runat="server" BackColor="#69696B" DataSourceID="SiteMapDataSource1" DynamicHorizontalOffset="0" Font-Names="Verdana" Font-Size="12px" ForeColor="#D7D7D9"StaticSubMenuIndent="10px" Orientation="Horizontal">

<StaticMenuItemStyle HorizontalPadding="2px" VerticalPadding="2px" BorderWidth="1px" /><DynamicMenuItemStyle HorizontalPadding="2px" VerticalPadding="2px" />

<DynamicHoverStyle BackColor="#D7D7D9" ForeColor="#B5121B" /><DynamicMenuStyle BackColor="#69696B" BorderStyle="Solid" BorderWidth="1px" />

<StaticSelectedStyle BackColor="#D7D7D9" ForeColor="#B5121B" /><DynamicSelectedStyle BackColor="#69696B" /> <StaticHoverStyle BackColor="#D7D7D9" ForeColor="#B5121B" />

</asp:Menu>

and the sitemapdatasource is as follows, the dataset is comming from the database

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />

I need to get the NavigateUrl string to local variable in Master Page_Load event, i tried to get it from the menu.SelectedItem.NavigateUrl, its giving null value

Also i tried to get the NavigateUrl from MenuItemClick event, but not solved.

Please help me to solve this issue ASAP.

Waiting for your reply.

 

 

"orzeh" <>
NewsGroup User
Re: Getting NavigateUrl from the Menu Control1/29/2008 7:05:58 AM

0

 hi!

to get the URL of current sitemap naode use this code:

if (SiteMap.CurrentNode != null)
            navUrl = SiteMap.CurrentNode.Url;

 

hope it helps

orzeh 


code less, think more!
"satisha_n" <>
NewsGroup User
Re: Getting NavigateUrl from the Menu Control1/29/2008 9:42:11 AM

0

Hi,

Issue fixed, Thanks.

With regards

Satish

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


Free Download:













background-image theme

themes and printing

how to access a control in master page?

master page content firefix problem

sitemappath - filled by folder

sliding menu

how can i set the color of an item template in a skin file

sitemappath control not displayed when querystring param contains spaces

using image buttons in menu with web.sitemap

setting title of content page

public property on masterpage not retaining value

multiple sitemaps, switching providers

binding data for sitemap

checkboxes in asp.net 2.0 menu control

space abov

wanting to modify the bread crumbs menu

problem with nav menu

trying to get button to expand/collapse menu

css setup

treeview image

how to set submenu style

theme stylesheets

from accesssitemapprovider to sqsitemapprovider

form submit on enter - disable?

treeview collapses on childnode click

how to remove top level menu items

re: permissions

creating image based site navigation using standard sitemap

modalpopup and masterpage

master pages and themes - images path question

content place holder not matching master

master pages and javascript in some content pages

positioning contentsplaceholder on master page

avoiding flyout on menu items- and link overload too

html encoding in the treenode.text property

ckick on treeview node to diplay value in panel

treeview selection without postback solved....

dynamic themes

treeview borders not expanding with nodes

invalid theme or stylesheet theme value in vs 2008

treeview right click problem

master page in sub folder does not show div background images.

tree view in user control

how can i design masterpage center aligned?.

changing a divs class on master page? please help..

session expired/logout using logincontrol c#

how to set equal space between each menuitem

unable to open links in another window

theme in asp2.0

navigation controls - secondary nav not showing

   
  Privacy | Contact Us
All Times Are GMT