Registering Controls Dynamically
-
Hello, :) We have custom controls we use on practically every ASP .NET page. This means placing the Register directive on every page, which seems inefficient. Is there a way to do this dynamically, for instance, registering the tag prefix in web.config or machine.config or storing the controls in the global assembly cache, so that custom controls can be added just like built-in controls? Many thanks, Daniel
-
Hello, :) We have custom controls we use on practically every ASP .NET page. This means placing the Register directive on every page, which seems inefficient. Is there a way to do this dynamically, for instance, registering the tag prefix in web.config or machine.config or storing the controls in the global assembly cache, so that custom controls can be added just like built-in controls? Many thanks, Daniel
Hi, Why not look into creating a base class that contains all your custom controls, and then let all your ASP.Net pages inherit from that base class? HTH, Thea