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 windows active directory authentication?
Define what is razor? : asp.net mvc
Which protocol is used to call a web service?
Explain one critical mapping?
Is it possible to apply themes to an asp.net application? If yes, then how?
Is viewstate secure?
What are the difference between overriding and overloading?
Which method is used to force all the validation controls to run?
What is the difference between application state and session state in asp net?
How is application management and maintenance improved in asp.net 2.0?
What is syntax code to send email from an asp.net application?
What is difference between ispostback and autopostback in asp net?
What are web beacons used for?
Is it possible to write code in many languages in one asp.net project?
In early binding will the method invoked on com component will verify it?s existance in the system or not ?