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 and server controls?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the Difference between user and server controls?
Answer
# 1
There are two main categories of creatable Web controls. 
User controls are more simple to create, but custom 
controls are more simple to use. The extra effort that goes 
into creating custom controls pays off for the developer 
using the control at design time.

User controls are saved with an ASCX file extension. 
Although they can be easily reused on any of the pages 
within the project in which they were created, there is no 
good way to reuse them in a different project. Another 
downside to user controls is that they only appear on the 
page at run time; at design time they appear on the page as 
an ugly gray box, making it difficult to envision how 
they'll appear to your users.

Custom controls can do everything that user controls can 
do - and much more. The biggest drawback is that they are 
more challenging and complex to create. Drag and drop is 
not supported for the creation of these controls. 
Therefore, all the HTML they output must be generated via 
code. Pretty much all the articles & controls on this web 
site are examples of custom controls. In addition to run-
time functionality without limits, custom controls support 
rich design-time functionality. They can appear on a page 
at design time the same way they'll appear at run time, or 
differently if preferred. They can be adjusted to change 
how they'll appear in the toolbox, and how the properties 
will appear in the properties window. If the properties 
window doesn't support the desired functionality, it can be 
extended with custom popup dialog boxes and other UI 
tricks. Custom controls are easily distributed and can be 
enhanced with help documentation and licensing 
functionality, allowing them to be sold to other developers.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: What is the Difference between user and server controls?
Answer
# 2
1.server controls are dll's and placed in toolbox,
1.user controls are pages and it have an extexsion .ascx.
It does not placed in toolbox.
2.User controls are more simple to create
2. but custom controls are more simple to use.
 
Is This Answer Correct ?    0 Yes 0 No
Gupta
 
 
 
  Re: What is the Difference between user and server controls?
Answer
# 3
The main difference is that a seperate copy is generated of 
user controls whereas only single copy of custom control is 
shared.
 
Is This Answer Correct ?    0 Yes 0 No
Janardan Baghla
 
  Re: What is the Difference between user and server controls?
Answer
# 4
user controls executed on each user separately and at client
side only, where as custom controls executed on server side
and only one copy for any number of users
 
Is This Answer Correct ?    0 Yes 0 No
Satish
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Does the following statement executes successfully: Response.Write(?value of i = ? + i); TCS4
What is web.config. How many web.config files can be allowed to use in an application? Accenture5
How we can kill our Session in web farm where there is no any sticky server .And user can not Logout bcoz of that.  1
You are planning the deployment of an ASP.NET application. The application uses a Visual Studio .NET component named DataAccess that will be shared with other applications on your Web server. You are using Visual Studio .NET to create a Windows Installer package. You need to deploy DataAccess and the ASP.NET application so that they can be uninstalled later of necessary. What should you do? A . Create a setup project for DataAccess. Add the ASP.NET application in a custom action. B . Create a setup project for the ASP.NET application. Create another setup project for DataAccess. C . Create a Web setup project for the ASP.NET application. Add a project output for DataAccess. D . Create a Web setup project for the ASP.NET application. Add a merge module for DataAccess. Syntax-Softtech3
Explain which is best suited place in the Application Start and Session_Start subroutines with an example?  3
.Net Doesn't offer Deterministic Distruction ? a) True b) False CTS4
What is the difference between Postback and Ispostback Property? HCL2
Describe and In Process Vs Out of Process component. Which is faster? Syntax-Softtech2
Explain what a diffgram is, and a good use for one?  1
how we deploy the asp.net 2.0 application Logistics1
What is .NetFramework? Syntel1
Tell About Web.config ? Keane-India-Ltd2
What is Master Page in Asp.net?  5
How many web.config a application can have ? Keane-India-Ltd4
if you disable view state of a textbox will it maintain data during postbacks.if yes reason FactorH6
What does this do? sn -t foo.dll  2
Which template must you provide, in order to display data in a Repeater control? Wipro2
Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?  1
What is the Web.config file used for? a) To store the global information and variable definition for the application. b) Configures the time that the server-side codebehind module is called c) To Configure the Web Server. d) To Configure the Web browser. Syntax-Softtech3
What are Authentication mechanisms in .Net? Accenture5
 
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