difference between MAster PAges and usr controls in asp.net


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

Who is Participating?

Improve company productivity with a Business Account.Sign Up

David H.H.LeeConnect With a Mentor Commented:
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

User Control
RobertNZanaConnect With a Mentor Commented:
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.
Anurag ThakurConnect With a Mentor Technical ManagerCommented:
might be helpful difference between a master page and a user control
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.