ASP.NET Slide Menu - Knowledge Base

« Back to Knowledge Base list

Set selected menu item

Q:

How can I set selected menu item?

A:

Use SelectedId property. Set it to the id of an item you want to select.
    osm.SelectedId = "p1";

.NET:
    <osm:SlideMenu id="sm1" SelectedId="c1"> . . .

Classic ASP:
    osm.AutoQueryString = true
    osm.SelectedId = Request.QueryString("sm")