Click here to Skip to main content
15,906,301 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
how to acess controls of master in user control page............
i didnot put relation between usercontrol and master page

can anyone help or suggest me
Posted

Try this.
Page.Master.FindControl("controlidhere");
 
Share this answer
 
Comments
babuatcha123 21-Jul-11 7:34am    
thank u for suggetion
but here it showa error
becoz i didnot use master page in usercontrol
Toniyo Jackson 21-Jul-11 7:41am    
You can not use Masterpage in User control. The .aspx page having User control should use MasterPage file. Otherwise it will not work.
Why you need to access MasterPage control if you are not using?
babuatcha123 21-Jul-11 7:51am    
actually
entire code in usercontrol only......i want some master page controls of data in usercontrol..finally i am executing aspx page through usercontrol without single line of code in aspx page
For that you need to create a user control and a web page extending master
page then call that user controls in that web page.
 
Share this answer
 
Comments
babuatcha123 21-Jul-11 7:34am    
if u donot mind,,,,,tell clearly

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