Creating Custom Server Controls

The advantage of creating a custom server control is that you have any functionality to be built in that control and you can have your properties set to it which are customized to your needs in the web application.

There are 3 ways by which you can create a customs control. One is to derive from and existing control and then modify it. The second method is to group the already existing controls into a composite one. And the third is to create a full custom control from the scratch by deriving System.Web.UI.WebControls.WebControl.

Whatever be the method to create a custom server control, you will be compiling it to a DLL and this DLL has to be copied to the /bin directory of the web application in which it is tested. If you are creating a full custom control then you have to register this control using a register directive. .







______________________________________________________

Recommended Resource



| Why should you go for Server Controls | Advantages of using .NET Server Controls | Understanding ASP.NET Server Controls | Creating Web Server Controls | Server Side Controls in ASP.Net | Creating Custom Server Controls | Server Controls in ASP.NET Web Page | Using Html Server Controls in your Web Pages | Understanding Dynamic Server Controls in ASP.NET | Using ASP Server Controls Templates | Developing ASP.NET Server Controls | Setting properties for ASP.NET Custom Server Controls | Implementing ASP.NET Server Side Controls | Creating Professional ASP.NET Server Controls |



_______________

FREE Subscription

Stay Current With the Latest Technology Developments Realted to .NET. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.


 

| Privacy Policy for www.dotnet-guide.com | Disclosure | Contact |

Copyright - © 2004 - 2017 - All Rights Reserved.