How do you access individual items of an Master Page
Answer Posted / m.ramasubbareddy
There are so many ways to access individual items of an
Master Page
you need to typecast what control you need to find
1.TextBox textbox=(TextBox)this.findcontrol("textbox1");
2.Label labl=(Label)page.parent.fincotrol("lblname") as Label;
3.ContentPlaceholder
cph=(ContentPlaceholder)this.findcontrol("ContentPlaceholder1"
);
Label lbl=(Label)cph.findcontrol("lblname");
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How you can add an event handler?
Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?
How does windows service lifecycle differ from a .standard. Exe?
How can you dynamically add user controls to a page?
Differentiate strong typing and weak typing
Define msil.
What are Session states available and its Uses?
What is the significance of proxy user?
What is the file extension of web service?
What is the difference between ASP Session State and ASP.Net Session State?
What is .net remoting?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What are session objects?
Is it right that ASP.NET Web API has replaced WCF?
How will you load dynamic assembly? How will create assesblies at run time?