Solved

difference between MAster PAges and usr controls in asp.net

Posted on 2009-05-05
3
773 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
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now