Results 1 to 4 of 4

Thread: Difference between Master Page & User Control in asp.net

  1. #1
    Join Date
    Aug 2006
    Posts
    162

    Difference between Master Page & User Control in asp.net

    I am new user in asp.net. I am studying to make projects in asp.net(using .Net 2.0). I am having many .aspx pages. Every time when I want to create a new .aspx page, I have to create a basic html layout and then drag these user controls in the design mode. Should I use master pages.? I am bit confused in Master Page and the User Control. Can anyone tell me the what's the difference between the Master Page and the User Control.? Thanks in advance..!
    Last edited by Samarth; 05-12-2009 at 05:12 PM.
    Processor: AMD Athlon(tm) 64 X2 Dual Core @ ~2.2 GHz
    Memory: 1024MB RAM
    Hard Drive: 200 GB
    Video Card: RADEON X300/X550 Series

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Difference between Master Page & User Control in asp.net

    User Control :
    Many times you need some functionality in your web pages, which is not possible to use it in Built-in Web Server Controls. Using this functionality user can create his own controls which is known as User Control that has been created using the asp.net controls. User control are nothing but .aspx extensions that can be shared in the application.

    Master Pages :
    Master pages are common to overall project. They are used to provide the consistent layout and common behaviour for the multiple pages in your
    applications.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Difference between Master Page & User Control in asp.net

    Master Page is just like a template for your page. You get ready made code. And in User Control you can use other control anywhere according to you on your web page and can use any number of time. Like in one user control you can put more than one control. In short Master Page act as template and the merging container for the web pages whereas a User Control is control which can be used again in many pages.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Difference between Master Page & User Control in asp.net

    In master page you define the looks and standard behavior of your application. Master page works as a parent page. Using user control you can drag and drop every pages. So there is drawback of designing the repeated pages. Also with user control you can make assembly and can use another project also.

    Caching is not performed in the master page and you cannot apply theme in your master page. Whereas you can apply theme and also can perform caching on user control.

Similar Threads

  1. Replies: 6
    Last Post: 04-01-2012, 07:54 PM
  2. Replies: 6
    Last Post: 10-07-2011, 10:19 PM
  3. Replies: 4
    Last Post: 28-04-2011, 10:08 AM
  4. Master volume control mutes itself
    By Christofer in forum Operating Systems
    Replies: 4
    Last Post: 27-09-2010, 09:26 AM
  5. Download BlackBerry Master Control Program
    By Rebeccak in forum Portable Devices
    Replies: 1
    Last Post: 07-02-2009, 10:21 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,329,005.47504 seconds with 17 queries