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 ?    13 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 ?    15 Yes 2 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 ?    10 Yes 3 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 ?    4 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 ?    3 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 ?    0 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 ?    10 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 ?    3 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 2 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
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Which method do you invoke on the DataAdapter control to load your generated dataset with data?  1
what is diference between the .net1.0 & .net2.0 ? EMax2
What is the Difference B/W Finalize() and Dispose() in .Net? HCL7
my name is sumeetha i am using google gears in .net.what's the problem is my server is in another place. i am working here when i entered the values in textboxes and press enter then it should store in database(sql server) which is in another system.when that sever system is shutdown then the values which i submit should store in my system and after system opened it should automatically store the values in the system can any one plz urgent suggest answer for this question?  2
What is the importence of the INTERFACE? but not the inheritence concept?and why we r declaring the empty methods in that? we can directly implements with in the class know? Tell me the importence?  2
What are the 4 tenants of SOA/D.  1
How to find the client browser type ? Cognizent4
what is the role of aspx file ? Netsweeper2
what is postback implementation?when pre-render event n init event is fired? Ness-Technologies1
what is differences between bind and eval?  1
What base class do all Web Forms inherit from?  4
What is web.config and machine.config ? TCS2
What is the main difference between grid layout and flow layout?  1
how to create bin folder in asp.net2.0  7
What is the namespace for encryption? Astadia1
code for inserting images into gridview colomns from database HP3
What namespaces are imported by default in ASMX files?  2
Trigger syntax in sql2000 Wipro1
what is soap? Microsoft3
What is the difference between Server.Transfer and Response.Redirect?  4
 
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