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 / rakesh

Suppose we have a Label(lblTest) in the MasterPage(TestMaster.master) and you want to access that in the Content page at that time u can use the following Code.

Page_Load(....)
{
Label lbl = (Label)TestMaster.FindControl("lblTest");
lbl.Text ="Accessed in ContentPage..";
}

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Elaborate differentiation between ViewState and SessionState?

1096


How will you do Redo and Undo in a TextControl?

1186


Which type if caching will be used if we want to cache the portion of a page instead of whole page?

921


What are the server controls in asp.net?

957


Explain the use of fragment caching.

1101


What is difference between view and partial view?

929


How to use push notification?

1040


How you will manage the state of ASP.NET controls?

1064


What are type/key pairs in client script registration?

1071


Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?

978


What is the use of service provider?

1032


Explain file-based dependency and key-based dependency.

984


How does session work in asp net?

1058


Explain the working of passport authentication.

966


List the events in page life cycle.

967