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
Elaborate differentiation between ViewState and SessionState?
How will you do Redo and Undo in a TextControl?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
What are the server controls in asp.net?
Explain the use of fragment caching.
What is difference between view and partial view?
How to use push notification?
How you will manage the state of ASP.NET controls?
What are type/key pairs in client script registration?
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
What is the use of service provider?
Explain file-based dependency and key-based dependency.
How does session work in asp net?
Explain the working of passport authentication.
List the events in page life cycle.