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 can you do with asp.net?
Which data type does the rangevalidator control support?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
What is routing in MVC?
What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?
What are the different types of sessions in asp.net?
Where is asp.net session stored?
Where is session data stored in asp net?
What are sessions used for?
What are Authentication and Authorization?
Web API supports which protocol?
What is server side routing?
What is the use of service provider?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?