ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What is the difference between User Controls and Master Pages
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 1
Both are code reduce features and reusability Purpose.When 
we create Masterpage that is common to overall 
project,whereas user controls these r used when we have 
requirement on specific criteria.
Master page ex: INBOX,SPAM,DRAFT,TRASH etc in YAHOO WEBSITE
 
Is This Answer Correct ?    17 Yes 4 No
Venkatesh
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 2
Master pages and user controils are two different concepts.

Master pages are used to provide the consistent layout  and 
common behaviour for multiple pages in your 
applications.then u can add the Contenetplaceholder to add 
child pages  custom contenet.
 User Controls:Sometimes u need the functionality in ur web 
pages which is not possible using the Built-In Web server 
controls then user can create his own controls called user 
controls using asp.net builtin controls.User controlsn are 
those with .aspx extensions and u can share it in the 
application.
 
Is This Answer Correct ?    19 Yes 5 No
Vdk
 
 
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 3
Master has a conteact plceholder where u can put child page 
in  this cph.

when user control is uses with in page . u can not use any 
page in user  control
 
Is This Answer Correct ?    11 Yes 4 No
Jiten
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 4
i think you can aslo page apply used with master page...
but control is only providing the add control not page...
 
Is This Answer Correct ?    2 Yes 5 No
Suresh Kumar
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 5
I Think Both are same but key difference is that , we can
not use mater page in user control................
 
Is This Answer Correct ?    5 Yes 0 No
Surender Sardana
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 6
master pages can not be cached.
user controls can be cached .
 
Is This Answer Correct ?    5 Yes 2 No
Ashish
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 7
Some times Javascript function may not work in master pages.
but in User controls, v can do server side code as well as 
java script code.
 
Is This Answer Correct ?    1 Yes 1 No
Sri29
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 8
just a not : 
this can be a tricky question depending on the interviewer.
Masterpage IS a UserControl, and you can easily check this
either by exploring classes to which websites are being
compiled or simply noting : 
public class MasterPage : UserControl

semanticaly, use of classical UserControl and Masterpage is
of course different, but this already has been elaborated in
other answers
 
Is This Answer Correct ?    2 Yes 0 No
Jay
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 9
user control
       1)it extension is .ascx.
       2)it can be more than one on single web page.
       3)it doesn't contain Contentplaceholder.
       4)it doesn't work like a fixed template.it can be
display in diffrent manner in diffrent page. 
MasterPage:
       1) it extension is .Master.
       2)it used like a template.
       3)it contain ContentPlaceHolder.
 
Is This Answer Correct ?    14 Yes 0 No
Nazrul
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 10
Master page inherits all child pages in contentplace holder 
and usercontrol can be placed in master page

user control is a control which must be placed in a page to 
perform specific task
 
Is This Answer Correct ?    4 Yes 0 No
Shaik Mujahid
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 11
I think we can implemented bussiness logic in user contorl 
but its vise versa we can't impelemented bussiness logic in 
master page..
 
Is This Answer Correct ?    0 Yes 5 No
Shailendra
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 12
I look for the answer of this question too. I have project
in ASP.NET 1.1 in this project there is just one aspx. in
this page there is placeHolder and by client's reuqest page
loads different user controls into the placeHolder. the aspx
file likes MasterPage. now i converted the project into
ASP.NET 3.0. I don't know should i change the aspx file to
master and user controls to content pages or not??
 
Is This Answer Correct ?    0 Yes 1 No
Fuad
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 13
master page is used when you want consistant look.
whereas user control is used to create your own control 
using asp.net built-in control.
 
Is This Answer Correct ?    1 Yes 0 No
Romit & Kalpesh
 
  Re: What is the difference between User Controls and Master Pages
Answer
# 14
In dotnet 1.1, developers where using user controls for the 
website navigation, footers which were standard for all the 
web pages, this was covered in 2.0 as master pages.
 
Is This Answer Correct ?    0 Yes 0 No
Dhina
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What is State Management in .Net and how many ways are there to maintain a state in .Net?  5
can we place the same DLL in debug folder two times? (without using strong name ) TCS7
If i have 1000 records in dataset, how to do paging? Mind-Tree2
which is best possible way to add data source to data grid when the data is huge(10 lack recored)how to edit a perticular row Aviva3
Can you edit data in the Repeater control?  3
What is shared and private assembly? Accenture1
Define Query Interface,Adref,Release? Microsoft1
Should validation (did the user enter a real date) occur server-side or client-side? Why?  2
Types of optimization and name a few ? Accenture3
Any alternative to avoid name collisions other then Namespaces?  1
What is the difference between response.redirect and server.transfer, how to choose one among the other? 247Customer2
What is an application domain? Microsoft1
Whats an assembly IBM1
What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design? KPIT1
What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ? eXensys2
Explain what a diffgram is, and a good use for one?  2
What are Sticky Sessions? Infosys2
What definition correctly defines a label server control with the name set to lblHoop? a) <asp:Label name=?lblHoop? runat=?server? /> b) <Label id=?lblHoop? runat=?server? /> c) <asp:Label id=?lblHoop? runat=?server? /> d) <server label name=?lblHoop? runat=?asp? /> Syntax-Softtech1
what is the role of aspx file ? Netsweeper2
How many classes can a single .NET DLL contain?  2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com