Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hi,

I have a horizontal navigation menu with 11 tabs (all images) inside the page. Each tab has 2 possible images which is (example : tab1_active.jpg & tab1_inactive.jpg).

since i'm newer in asp.net, I could definitely use some help figuring out how to turn a tab image "active" (change the image) if a user clicks on it. And then if a user clicks on a different tab the currently "active" tab needs to be switched back to "inactive" and the new selection needs to be "active".

example of my code :
<table>
  <tr>
    <td>
      <asp:ImageButton ID="Tab1" ImageUrl="~/image/tab1_inactive.jpg" runat="server" />
      <asp:ImageButton ID="Tab2" ImageUrl="~/image/tab2_inactive.jpg" runat="server" />
      <asp:ImageButton ID="Tab3" ImageUrl="~/image/tab3_inactive.jpg" runat="server" />
    <td />
  <tr />
<table /></td></tr></table>

any help would be really appreciated.
Posted
Updated 4-May-11 18:55pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900