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
What is webresource axd?
What do you mean by View State and what is its role?
What are the elements of a website?
What is client side state management?
How to disable cut, copy and paste in TextBox using jQuery in asp.net?
Define session in asp.net.
can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?
They mostly asked difference between versions of technologies
What should you do is you want to remove an existing component but would like to make some funtionalities?
Do I need to have the latest version of windows media player installed?
How do u deploy your asp.net application?
Explain the different types of assemblies?
What is the use of service provider?
Explain diff. Betn dataset and recordset?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#