How to change id value on master page for tabs?

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>
 
M

Munna

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top