Creating Custom Server ControlsThe 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. .
|