How to change id value on master page for tabs?

  • Thread starter Thread starter bdog4
  • Start date Start date
B

bdog4

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>
 
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
 
Back
Top