Click here to Skip to main content
15,914,400 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
unorder list(ul) in master page i need to how to call that ul id in child pages
Posted
Comments
Dholakiya Ankit 5-Aug-13 3:23am    
what u have done krish????

You can use the code wherw 'ul1' is the your control name that your finding in your master page.
C#
Page.Master.FindControl("ul1");



Thanks,
Mamun
 
Share this answer
 
Hi,

You can use like the following.

In the masterpage:

XML
<ul runat="server" id="list">
    <li runat="server" id="home">Home</li>
    <li runat="server" id="news">News</li>
</ul>


In the child page:

Control list = this.Page.Master.FindControl("list");


Thanks
 
Share this answer
 
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