Protected Sub Menu1_MenuItemClick(ByVal sender As Object, ByVal e As MenuEventArgs) Handles Menu1.MenuItemClick MultiView1.ActiveViewIndex = Int32.Parse(e.Item.Value) Dim i As Integer For i = 0 To Menu1.Items.Count - 1 If i = e.Item.Value Then Menu1.Items(i).ImageUrl = "selectedtab.gif" Else Menu1.Items(i).ImageUrl = "unselectedtab.gif" End If Next End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Page.IsPostBack = False Then Menu1.Items(0).Selected = True End If End Sub
protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) { Menu1.Items[0].Selected = true; } } protected void Menu1_MenuItemClick(object sender, MenuEventArgs e) { MultiView1.ActiveViewIndex = Int32.Parse(e.Item.Value); for (int i = 0; i < Menu1.Items.Count-1;i++) { if(i=e.Item.Value) { Menu1.Items[i].ImageUrl = "selectedtab.gif"; } else { Menu1.Items[i].ImageUrl = "unselectedtab.gif"; } } }
if(i=e.Item.Value)
if(i==Convert.ToInt32(e.Item.Value))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)