Solved

difference between MAster PAges and usr controls in asp.net

Posted on 2009-05-05
3
778 Views
Last Modified: 2013-12-17
Hi

What is the difference between master pages and user controls in asp.net . plelase let me know.

Thanks,
0
Comment
Question by:ram27
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 300 total points
ID: 24311303
Hi ram27,
One of the major different is Master page inherits all child pages in contentplace holder control
and usercontrol can be placed in master page. In nutshell, user control can be considered as subset of Master page control. Meanwhile, you also notice that user control can't hold any page inside.

If you're comparing both in design mode, you'll notice master page's design is rendered clearly in the entire page's design mode and user control's design only be rendered after you run the page at run-time version.
I'm sure there are more differences for both controls that used, you can check each of its original functionality and compare it respectively.

However, if you're looking for deeper explanations for both control, give these a stab:
Master Page
==============
http://www.asp.net/learn/moving-to-asp.net-2.0/module-04.aspx

User Control
===========
http://www.dotnetjunkies.com/quickstart/aspplus/doc/webpagelets.aspx
0
 
LVL 9

Assisted Solution

by:RobertNZana
RobertNZana earned 100 total points
ID: 24312801
I like to think of a Master Page as a master template, while User Controls are usually web functionality "components" that you plug into a page.
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 100 total points
ID: 24325855
might be helpful difference between a master page and a user control
http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=32165
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
transition to visual .net from vb6 5 63
Query in AngularJS 8 53
VB.net Filesystem watcher not working 5 38
Office 365: Assigning MailboxPlan to a mailbox 8 26
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question