[Mono-dev] asp.net menu StaticSelectedStyle
fn30762 at fmi.uni-sofia.bg
Mon Sep 17 04:26:11 EDT 2007
The problem is when using menu in the master page. The child pages does
override something, so them menu is left not selected. This means that
we have to select it manually by accessing the menu in the master page
from the child page like this.Master.FindControl("MyMenu") and set the
menu item.Selected=true that corresponds to the page the user has
clicked in the menu.
Onur Gumus wrote:
> I use that control successfully as of 1.2.5. I have digged all options
> but here's my decleration:
> <asp:Menu style="position:absolute; top:200px;"
> Id="menu1" DataSourceID="srcSiteMap"
> Runat="server" />
> This works exactly I expected (successfully). One important note . You
> must get rid of the <!DOCTYPE decleration at top of the aspx page for
> this to work
> I hope it helps
> On 9/11/07, *Anton Andreev* <fn30762 at fmi.uni-sofia.bg
> <mailto:fn30762 at fmi.uni-sofia.bg>> wrote:
> It seems that there is a problem with StaticSelectedStyle in Microsoft
> version of Asp.NET Menu control.
> Does someone know something about that?
> Is it Mono Menu control stable enough, so I can use it instead of
> Microsoft one?
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> <mailto:Mono-devel-list at lists.ximian.com>
> Warning: If you are reading this then this warning is for you. Every
> word you read of this useless fine print is another second off your
> life. Don't you have other things to do? Is your life so empty that
> you honestly can't think of a better way to spend these moments? Or
> are you so impressed with authority that you give respect and credence
> to all that claim it? Do you read everything you're supposed to read?
> Do you think every thing you're supposed to think? Buy what you're
> told to want? Get out of your apartment. Meet a member of the opposite
> sex. Stop the excessive shopping and masturbation.Quit your job. Start
> a fight. Prove you're alive. If you don't claim your humanity you will
> become a statistic. You have been warned - Onur
More information about the Mono-devel-list