How to change id value on master page for tabs?

Discussion in 'ASP .Net' started by bdog4@hotmail.com, Jul 18, 2008.

  1. Guest

    I have a master page that use <ul> & <li> to create tabs across the
    top. I need to be able to set the id="current" when user on
    corresponding pages. How can I do this from the content page? Thanks

    Master Page Tabs
    <ul>
    <li><a href="default.aspx"><span>Home</span></a></li>
    <li id="current"><a href="default.aspx"><span>Xerox</span></a></
    li>
    <li><a href="default.aspx"><span>Time </span></a></li>
    <li><a href="default.aspx"><span>Downloads</span></a></li>
    <li><a href="default.aspx"><span>Distribution</span></a></li>
    <li><a href="default.aspx"><span>Admin</span></a></li>
    </ul>
    , Jul 18, 2008
    #1
    1. Advertising

  2. Munna Guest

    Hi,

    if you marks ur li as runat server you will be able to change value
    from code behind file...
    i think change of id is not necessary if you change the css class...
    but the choice is yours...
    you can write a function in master page where you can change value
    depending on pages condition
    to access master page function use page.master

    best of luck

    munna
    Munna, Jul 18, 2008
    #2
    1. Advertising

  3. Munna Guest

    Munna, Jul 18, 2008
    #3
  4. Guest

    Thanks for the quick response. I'll give it a shot
    , Jul 18, 2008
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Doug McCann
    Replies:
    1
    Views:
    1,008
    William Brogden
    Aug 5, 2004
  2. qwweeeit
    Replies:
    2
    Views:
    647
    qwweeeit
    Dec 14, 2005
  3. Nathan Sokalski
    Replies:
    25
    Views:
    1,430
    Nathan Sokalski
    Mar 4, 2010
  4. rantingrick

    Tabs -vs- Spaces: Tabs should have won.

    rantingrick, Jul 16, 2011, in forum: Python
    Replies:
    95
    Views:
    1,832
    Roy Smith
    Jul 19, 2011
  5. John Kopanas
    Replies:
    2
    Views:
    291
    Gregory Brown
    Jan 29, 2007
Loading...

Share This Page