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 is %20 in a url?
Explain the difference between value type and reference type?
What are the ways of preserving data on a Web Form in ASP.NET?
What are the Types of session management in ASP.NET
What type of code, client-side or server-side, is found in a code-behind file of a Web page?
What is cookies cache and session?
How do sessions work?
How may clustered index we can create in table?
Explain about the .NET framework?
How does http session work?
What is diff. Between abstract class and an interface?
Explain swagger components.
What is difference between cache and session?
What are the new data controls in asp.net 2.0?
What is the equivalent of date() and time() in asp.net?