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: 5/8/2007 8:41:04 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 27 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Kestrel42
Asp.Net User
SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider5/8/2007 8:41:04 AM

0/0

I'm using Jeff's SQL based site map as described in this article: http://msdn.microsoft.com/msdnmag/issues/06/02/WickedCode/default.aspx

It's a great improvement on the web.sitemap file, but I've discovered that the menus no longer indicate which is the current node. Any suggestions how to fix that?

I have the following code in my Master Page:

<asp:Menu ID="Menu1" runat="server" SkinID="Menu1" DataSourceID="SiteMapDataSource1" StaticSubMenuIndent="">

<StaticMenuStyle CssClass="Menu_StaticMenu" />

<StaticMenuItemStyle CssClass="Menu_StaticMenuItem" />

<DynamicHoverStyle CssClass="Menu_DynamicHover" />

<StaticSelectedStyle CssClass="Menu_StaticSelected" />

<DynamicSelectedStyle CssClass="Menu_DynamicSelected" />

<DynamicMenuItemStyle CssClass="Menu_DynamicMenuItem" />

<StaticHoverStyle CssClass="Menu_StaticHover" />

</asp:Menu>
Amanda Wang - M
Asp.Net User
Re: SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider5/11/2007 7:57:14 AM

0/0

Hi,

I think the problem may be the menu's MaximumDynamicDisplayLevels property is set too small.

Actually, I don't think I understand your problem more clearly, if you can, please provide more information.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
Kestrel42
Asp.Net User
Re: SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider5/11/2007 8:09:39 AM

0/0

My problem is that ASP.Net does not include the necessary CSS tags to distinguish the selected items on the menu.

I have since developed this "workround" - but don't really understand why it is necessary.

 protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
    {
        SiteMapNode smn = SiteMap.CurrentNode;
    
        string item = e.Item.NavigateUrl;
        bool Selected = false;
        if (smn0 != null)
        {
            Selected = smn.Url.Equals(item, StringComparison.CurrentCultureIgnoreCase);
        }
        e.Item.Selected = Selected;
    } 

 

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


Free Download:


Web:
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider. Last post 05-11-2007 4:09 AM by Kestrel42. 2 replies. Sort Posts: ...
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider ... Channel 10: Microsoft Unveils World’s Most Advanced Tracking Technology. Channel 10 ...
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider. Last post 05-11-2007 4:09 AM by Kestrel42. 2 replies. Sort Posts: ...
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider ... Channel 10: Microsoft Unveils World’s Most Advanced Tracking Technology. Channel 10 ...
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider. Last post 05-11-2007 4:09 AM by Kestrel42. 2 replies. Sort Posts: ...
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider ... Channel 10: Microsoft Unveils World’s Most Advanced Tracking Technology. Channel 10 ...
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider. Last post 05-11-2007 4:09 AM by Kestrel42. 2 replies. Sort Posts: ...
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider ... Channel 10: Microsoft Unveils World’s Most Advanced Tracking Technology. Channel 10 ...
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider. Last post 05-11-2007 4:09 AM by Kestrel42. 2 replies. Sort Posts: ...
SelectedStyles do not work with Jeff Prosise's SQL Sitemap ... SelectedStyles do not work with Jeff Prosise's SQL Sitemap provider ... Channel 10: Microsoft Unveils World’s Most Advanced Tracking Technology. Channel 10 ...




Search This Site:










using a checkboxlist to update a many-to-many table

how to create a polls

convert path files to url

file->new->project vs file-new->website

how to differe in between exception from primary key violation or from other

problem with email control... need some help with regular expressions

accessing textbox inside a form view control

how to use class???

implementation problem

flash problem on text/html module

cancel button in form with validators?

how to get date of specific day

cannot create administrative user

stop then continue with createuserwizard?

http tool

basic installation problem 3.0.13

users and groups

howto have multilingual support

browser rendering problems

dnn2.1.2 missing (survey & user accounts) modules

how to:multilanguage and url rewriting

showing the fields in a detailsview when there is no data

free container skin

problem in emails

admin and profiles

the underlying connection was closed: could not establish trust relationship for the ssl/tls secure channel.

repaeater does not produce "command" event

simple query question from beginner

asp.net vs c#

3.1

 
All Times Are GMT