ERROR >>>>>>>>>>>master page

Last post 10-07-2008 11:34 PM by Amanda Wang - MSFT. 3 replies.

Sort Posts:

  • Confused [8-)] ERROR >>>>>>>>>>>master page

    10-06-2008, 9:09 AM
    • Member
      22 point Member
    • suhasakole
    • Member since 07-22-2008, 6:26 AM
    • Posts 58

    can any budy give me an answer of given question

    this question is ask in interview

    we have an usercontrol in .net 1.0,1.1 why microsoft implimented the masterpage concept in 2.0

    as work done by master page is same as usercontrol do

     

    can any budy gives mw an ans -----------why we use master pages........????????

  • Re: ERROR >>>>>>>>>>>master page

    10-06-2008, 10:00 AM
    • Star
      8,432 point Star
    • cv_vikram
    • Member since 07-04-2006, 1:33 PM
    • Earth
    • Posts 1,047

    Friend, this article explains you why do we use the master pages

    http://dotnetperls.com/Content/Master-Page-Code-Behind.aspx

    and this one http://www.careerride.com/ASP.NET-Master-Pages-Questions.aspx

    Good luck!

    Please Don't forget to click "Mark as Answer" on the post that helped you.
    This can be beneficial to other community members reading the thread.
  • Re: ERROR >>>>>>>>>>>master page

    10-06-2008, 5:31 PM
    • Contributor
      2,579 point Contributor
    • Rinze
    • Member since 08-15-2007, 2:56 PM
    • Leiden, Netherlands
    • Posts 477

    I think in general masterpages are used as a template for your page layout, and usercontrol are used to offer a single peace of functionality (like creating a header user control and dropping it on all your pages).

    Hope this helps !
    Rinze Cats

    ---------
    please select 'mark as answer' if this post helped you!
  • Re: ERROR >>>>>>>>>>>master page

    10-07-2008, 11:34 PM
    Answer

    Hi,

    suhasakole:

    we have an usercontrol in .net 1.0,1.1 why microsoft implimented the masterpage concept in 2.0

    as work done by master page is same as usercontrol do

    In fact, the master page drives from the user control. When the aoolication executs the master page just like a usercontrol on the content page.

    You’ll only need to write the common pieces once - in the master page. A master page can serve as a template for one or more web forms. Each ASPX web form only needs to define the content unique to itself, and this content will plug into specified areas of the master page layout.

    The more about how the master page works you can try to refer this greate artcile:  http://www.odetocode.com/Articles/450.aspx

    About how to use master page to building a professional web application with a consistent, easy to maintain layout in ASP.NET, you can try to refer this article: http://www.odetocode.com/Articles/419.aspx.

    Amanda Wang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (4 items)