473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to change id value on master page for tabs?

I have a master page that use <ul& <lito 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 '08 #1
3 2248
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
Jul 18 '08 #2
Hi

this is simple article to show how master page control is accessed

http://aspnetlibrary.com/articledeta...e-Content-Page

BEST OF LUCK

--------------
Munna

www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Jul 18 '08 #3
Thanks for the quick response. I'll give it a shot
Jul 18 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Thielen | last post by:
Hi; I want to do a master page that has a constant header across the top that is tabs for all of the main menu items. I want the tab for the page presently on to be a different color so you know...
9
by: ad | last post by:
Hi, How can I dynamically change the MasterPager of a web page?
4
by: David Lozzi | last post by:
Howdy, I have my master page, and I would like to change the background CSS class per the content page. Only the home page has a different background style, all other pages are using the same. I...
3
by: William Youngman | last post by:
I am on a team that is developing a proposal generation web application and we are using a custom base page (ProGenBase.cs) located in the app_code directory and all of the app's web pages inherit...
5
by: Simon Benson | last post by:
Probably a fairly simple problem but one that's been plaguing me for a couple of days... can anyone help? I have a classic ASP page with a number of text boxes which are updatable. For...
1
by: shapper | last post by:
Hello, I created 2 master pages and a page related as follows: Master1 Master2 MyPage In MyPage I need to access a user control that I added to Master1 to change a few of its properties. ...
0
by: HillBilly | last post by:
MasterPages again. Three LinkButtons are being used as styled tabs in the content page that will load a different ListView when a tab is selected: TabA, TabB or TabC. The LinkButtons are declared...
10
by: _Who | last post by:
Seems to me that I should be able to do something like: ....runat="server" change from white.css to black.css... Of course if I could have found out how, I wouldn't be bothering you. Is...
0
by: cleary1981 | last post by:
Hi, Heres my xsl stylesheet. Its work in progress but it works. What I want to do however is to make one page in the middle (drawings) a landscape page. Can anyone explain how to do this as all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.