How do you access individual items of an Master Page
Answer Posted / rakesh
Suppose we have a Label(lblTest) in the MasterPage(TestMaster.master) and you want to access that in the Content page at that time u can use the following Code.
Page_Load(....)
{
Label lbl = (Label)TestMaster.FindControl("lblTest");
lbl.Text ="Accessed in ContentPage..";
}
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
Which is better union or union all?
Where is asp.net view state stored?
What is a user session?
What are the different types of cookies in asp.net?
What are cao and sao.
Are cookies stored on server or client?
How you can add an event handler?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
How can you send an email message from an asp.net web page?
Explain difference between friend and protected friend?
What is server side routing?
What is application state?
What are httphandlers and httpmodules and difference between them?
What are the modes of updation in an updatepanel?