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
Explain managed code an un-managed code.
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.
What does clearing cache?
Explain the difference between web user control and web custom control?
Is it possible for me to change my aspx file extension to some other name?
Can we use a static function with a non-static variable?
How to implement role based security in asp.net mvc? : Asp.Net MVC
Differentiate globalization and localization.
What is app_code folder in asp net?
How do you do Client-side validation in .Net?
What are the features of asp.net mvc?
What are the new data controls in asp.net 2.0?
How can we pass info between 2 asp.net pages?
How can we apply themes to an asp.net application?