Vista Online by Friends Of Vista, Inc. - A Texas Nonprofit Corporation | Informative Articles For Your Life | Click Here To Return To Index Page Of Site

Understanding Custom Server Controls In ASP.NET

By: Balaji



ASP.NET offers many server controls for the developers to create web applications. However, at some point of development time when the developer does not get the control they want, they can create a new server control. This new server control can be called ASP.NET Custom Server Controls or user control. The basic difference between a ASP.NET Custom Server Controls and a user control is that unlike a user control that does not appear in the Toolbox, you can view a ASP.NET Custom Server Controls in the Toolbox. ASP.NET Custom Server Controls have their own events such as Enter, Onclick, and Onmouseover.

ASP.NET Custom Server Controls are very handy tool to use in your web forms. User controls prove inefficient in advanced scenarios. ASP.NET Custom Server Controls are the compiled code that makes them user friendly. You should write the ASP.NET Custom Server Controls in code, thereby view it in the visual designer with full properties and design-time features. You can create a ASP.NET Custom Server Controls by inheriting one of the base control classes. These classes have all the functionality that is needed for a server control. Therefore, you just have to modify some of the programming aspects to suit your requirements.

Just as you have created a ASP.NET Custom Server Controls you can customize it too to create a unique identity. You can even consume a single ASP.NET Custom Server Controls for multiple web forms. For ASP.NET Custom Server Controls only one copy of the control is needed in the Global Assembly Cache (GAC). Moreover, ASP.NET Custom Server Controls are very helpful if you want a dynamic layout for your web application.

To access online version of the above article, go to http://www.dotnet-guide.com/customcontrols.html

About the Author

Visit http://www.dotnet-guide.com for a
complete introduction to .NET framework.
Learn about ASP.NET, VB.NET, C# and other related technologies.


Article Source: http://www.friendsofvista.org/articles/article22706.html





Related Articles

Understanding The Pros And Cons Of .Net And Java - Balaji
Understanding ASP.NET Validation Controls - Balaji
Great Plains Customization - Programming Auto-apply In Accounts Receivable - Andrew Karasev
It's Not Rocket Science, It's Programming - Duane Hennessy
Declarative Programming - Strategies For Solving Software Problems - Roy Furman, Ph.D
How To Get HDTV Programming For Your Home - Jim Johnson
Great Plains Dexterity Programming - Overview For Developer - Andrew Karasev
Microsoft CRM Customization - Programming Closed Email Activity - Boris Makushkin
Know More About Your Satellite TV Deals: Getting The Best Out Of Your Satellite HDTV Programming - Claudia Walters
Pick The Right Dish Network Programming - Teddy Lc.
   

 
Copyright © 2008 Friends of Vista, Inc. TM - A Texas Nonprofit Corporation
Privacy Statement | Contact Us