< ASP: menu ID = " Menu1 " Runat = " Server " Staticenabledefaultpopoutimage = " False " Orientation = " Horizontal " Onmenuitemclick = " Menu1_menuitemclick " >
< Items >
< ASP: menuitem text = " Aaaaa " Value = " 0 " > </ ASP: menuitem >
< ASP: menuitem text = " Bbbbb " Value = " 1 " > </ ASP: menuitem >
< ASP: menuitem text = " XXXXX " Value = " 2 " > </ ASP: menuitem >
</ Items >
</ ASP: Menu >
< ASP: multiview ID = " Multiview1 " Runat = " Server " Activeviewindex = " 0 " >
< ASP: View ID = " View1 " Runat = " Server " >
Aaaaaaaaaaaaaaaaaaaaaa
</ ASP: View >
< ASP: View ID = " View2 " Runat = " Server " >
Bbbbbbbbbbbbbbbbbbbb
</ ASP: View >
< ASP: View ID = " View3 " Runat = " Server " >
Xxxxxxxxxxxxxxxx
</ ASP: View >
</ ASP: multiview >
----------------------- Code
---------------------- Code
protected void menu1_menuitemclick ( Object sender, menueventargs E)
{< br>
multiview1.activeviewindex = convert. toint32 (menu1.selectedvalue);
}< br>