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 is windows active directory authentication?

1109


Define what is razor? : asp.net mvc

1051


Which protocol is used to call a web service?

1103


Explain one critical mapping?

1052


Is it possible to apply themes to an asp.net application? If yes, then how?

1065


Is viewstate secure?

1007


What are the difference between overriding and overloading?

1158


Which method is used to force all the validation controls to run?

1076


What is the difference between application state and session state in asp net?

1093


How is application management and maintenance improved in asp.net 2.0?

1038


What is syntax code to send email from an asp.net application?

1062


What is difference between ispostback and autopostback in asp net?

1103


What are web beacons used for?

1064


Is it possible to write code in many languages in one asp.net project?

1057


In early binding will the method invoked on com component will verify it?s existance in the system or not ?

2690