Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the different method of navigation in asp.net?

1015


How can we communicate with each server in N-tier Architecture? and what are the methods?

2221


Describe state management in asp.net?

1040


Explain the difference between Repeater and Data list control in ASP.NET?

1079


What asp.net control can embed xaml into asp.net pages?

967


What is xaml? Are xaml file compiled or built on runtime?

959


Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

1000


What are the namespaces used in asp.net mvc? : asp.net mvc

1056


What are main return types supported in Web API?

1380


Why asp.net mvc is better than asp.net? : Asp.Net MVC

1111


How dataadapter.fill works?

1021


How does session work?

901


What is difference between View State and Hidden Field in ASP.NET?

1132


How can I have a particular web page in an asp.net application which displays its own error page?

1100


Define application state variable and session state variable?

981