What is the Difference between user and server controls?
Answers were Sorted based on User's Feedback
Answer / gupta
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 ? | 6 Yes | 0 No |
Answer / abhinay kumar
custom controle is inbuild control where as user control
which are created by us as our requirement.
to make a user control .net provide a file which extention
is ascx.
| Is This Answer Correct ? | 3 Yes | 0 No |
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 ? | 1 Yes | 0 No |
Answer / satish
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 |
Answer / guest
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 | 1 No |
What is difference between machine.config and Web.Config?
4 Answers Accenture, BirlaSoft, Le Logiciel,
What is the difference between c# and .net?
i cant get Primary output selection from the Dialog box While Creating Setup and Deployment the web application how to solve it..
What is the basic difference between asp and asp.net?
What are directives in asp.net? List down all the important directives.
Suppose, I have 3 pages, Page1.aspx, Page2.aspx, Page3.aspx. All pages are in diff. server. When user req. for a page, Page1.aspx opens Ist & a session established. If user req. for IIn page, second session established. Similarly, 3rd session established if user req. 3rd page. In this scenario, tot. 03 sessions are established. How we can minimize it so that it will work with only one session?
What is application and session in asp.net?
Is It Possible For Whole Page is Saved In View State? What Is View State?
2 Answers Phoenix Technologies,
what is DLL Hell and how it is solved in .NET? please explain clearly??
how many character send in one sms forget 160limit and think about gateway allowed
Difference between response.redirect and server.transfer?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)