Solved

difference between MAster PAges and usr controls in asp.net

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

20 Experts available now in Live!

Get 1:1 Help Now