Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the Difference between user and server controls?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long does an http session last?

891


What are Caching techniques in .NET

995


Why is it preferred to not use finalize for clean up?

948


Explain a program using razor view engine to create a simple application? : asp.net mvc

953


Explain the difference between Repeater and Data list control in ASP.NET?

1060


What is OSI layer? Explain different layers.

1005


What is boxing and unboxing in asp.net?

1029


Describe a bubbled event and how it is used ?

1079


What is caching in asp.net?

968


How to change Master page in ASP.Net using code?

1004


What are the HTML server controls in ASP.NET?

1053


What are sessions and cookies?

931


What is the advantage of using Windows authentication in a Web application?

1042


What is asp.net web pages?

940


Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?

963