Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASP.NET
<li id="liInvoiceYetToBeRaisedReport"  runat="server" visible="false"><ahref style="background: removed(Images/strip.png) repeat-y;">


i have this tags in masterpage
now i want to find "liInvoiceYetToBeRaisedReport".
i tried this code for finding but it didn't work

HTML
HtmlGenericControl lt = (HtmlGenericControl)Master.FindControl("liInvoiceYetToBeRaisedReport");


kindly give me a solution.
Posted
Updated 3-Feb-12 10:56am
v3

you don't need to find control
you will directly access this control in aspx.cs page using id
 
Share this answer
 
Comments
Sanjay K. Gupta 3-Feb-12 3:45am    
I agree with you .
5 Take from me
Member 8589824 3-Feb-12 3:51am    
this control is in master page. and i want to access it in class file.. not in aspx.cs. page
Refer to the section "How to interact with master page controls from content page" in the below CP article,

Inside Master Pages[^]

Hope it helps.
 
Share this answer
 

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