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
What are Session states available and its Uses?
What is custom attribute? How to create?
How would you enable impersonation in the web.config file?
How do you remove duplicates without using remove duplicate stage?
Why select Web API?
What are the Types of session management in ASP.NET
What are the Types of state management techniques
What is the difference between session and viewstate?
Describe the application event handlers in ASP.NET?
What is css and what is it used for?
Is asp net front end or backend?
Explain Areas in MVC?
A web service can only be written in .net? State whether true or false.
Can you explain one critical mapping? Performance issue which one is better? Whether connected lookup tranformation or unconnected one?
Is asp.net mvc front end or backend? : Asp.Net MVC