ASP.NET Slide Menu - Knowledge Base

« Back to Knowledge Base list

Select 2 different menus on one page


I have 2 different menus on one page. How can I select both? 


In case of postback, both menus will remember their selected items and will retain them.

You can use two values in the query string for each of the menus. Forexample, "somepage.aspx?sm1=c3&sm2=c6"
Then, assign the values to each of the menus:
    osm1.SelectedId = Request.QueryString["sm1"];
    osm2.SelectedId = Request.QueryString["sm2"];