Is there an article that describes how to embed a custom control assembly into another assembly, and to use and call and use the embedded control from the container assembly? Thanks. Lopez
Huh? You mean to inherit from a 3rd party control (or not a built-in control) and you will have to do some modifications to that control so you can create your own controls?
Well, I have an assembly containing classes that handle all the business logic of my web application. Inside this assembly, I need to embed a 3rd party control in order to create instances of it programatically and bind it to a page, but with no intention to
extend or modify the 3rd party control. Is it possible? I thought that maybe I could include the 3rd party control as an embedded resource into the business logic assembly, but I don't know how to call, use or create instances of the embedded 3rd party control
programatically from the business logic classes. Thanks for any help, Lopez
That is not a problem at all. From your business assembly, add a reference to the 3rd party controls that you have. Do your data binding and such as one would do for a standard control. For example, you add reference to the assembly that contains the 3rd party
controls (tell me if you have VS.NET or compiling via the command line). Once you have done that, you import the namespace(s) of where the 3rd party control(s) exist. Once you have done that, you may begin as you would have done to a normal server control.
Thanks. I'm using VS.NET 2003. Adding a reference to the assembly that contains the 3rd party control and then importing the its namespaces works fine. However, I wonder if there is a way to embed the 3rd party assembly into my business assembly, in order to
"hide" the 3rd party assembly from the users that I distribute the web application to. Thanks for any help, Lopez
lopez
Member
60 Points
14 Posts
Custom control inside another assembly
Jan 17, 2004 02:08 AM|LINK
master4eva
Star
13635 Points
2719 Posts
Re: Custom control inside another assembly
Jan 17, 2004 08:58 AM|LINK
lopez
Member
60 Points
14 Posts
Re: Custom control inside another assembly
Jan 17, 2004 03:51 PM|LINK
master4eva
Star
13635 Points
2719 Posts
Re: Custom control inside another assembly
Jan 17, 2004 05:43 PM|LINK
lopez
Member
60 Points
14 Posts
Re: Custom control inside another assembly
Jan 17, 2004 08:37 PM|LINK
master4eva
Star
13635 Points
2719 Posts
Re: Custom control inside another assembly
Jan 18, 2004 06:02 AM|LINK