Registering Server Controls in web.config

If you have a custom server control that you are going to use in several different pages. It might be worth while to register the server control in web.config file instead of registering it in several different pages. Here is an example of registering my custom controls library in web.config file.

image

once you have registered the server control, you can declare this server in any aspx or ascx page as follows

image

4 Comments

Comments have been disabled for this content.