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

Answers were Sorted based on User's Feedback



How do you access individual items of an Master Page..

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

How do you access individual items of an Master Page..

Answer / vijay singh

MultiView mv =
(MultiView)Master.FindControl("Multiviewsidebar");

Is This Answer Correct ?    6 Yes 4 No

How do you access individual items of an Master Page..

Answer / kevin m

Best not to let the content page know about a control.

Expose what is needed by public properties on the master page, makes the solution far more flexible and decoupled.

Is This Answer Correct ?    2 Yes 1 No

How do you access individual items of an Master Page..

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

How do you access individual items of an Master Page..

Answer / prayag t

you can also have a public property defined in master pages
to be accessed in other child pages.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

what is wwf in asp.net?

3 Answers  


What is boxing?

8 Answers   IBM, Misys, Siebel Systems,


What is ispostback method in asp.net?

0 Answers  


What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?

1 Answers   Infosys,


Features in ASP.NET ?

1 Answers   Microsoft,


What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ?

3 Answers   eXensys,


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

0 Answers  


What is the difference between sealed vs static class?

0 Answers  


What is cookies cache and session?

0 Answers  


About Postback ?

6 Answers   Accenture,


IS IT POSSIBLE TO SET TIME FOR COOKIES?HOW IT IS POSSIBLE.

1 Answers  


public key?

1 Answers   Microsoft,


Categories