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

How you can add an event handler?

1019


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

1042


How does windows service lifecycle differ from a .standard. Exe?

1092


How can you dynamically add user controls to a page?

1014


Differentiate strong typing and weak typing

1007


Define msil.

1018


What are Session states available and its Uses?

2269


What is the significance of proxy user?

1155


What is the file extension of web service?

1059


What is the difference between ASP Session State and ASP.Net Session State?

1138


What is .net remoting?

1110


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

1039


What are session objects?

1057


Is it right that ASP.NET Web API has replaced WCF?

1021


How will you load dynamic assembly? How will create assesblies at run time?

978