ASP 3.0 vs. .NET component
-
Hi guys This is a general question which I hope you can help me with. I'm not really into ASP 3.0 that much, but in this case im forced to use it :sigh: Anyways ... I have a backend component (a DLL) written in C#, which contains methods needed in the ASP frontend. My question is... How do I access my DLL from the ASP code? Is it even possible? Examples would be much appreciated! /Thomas
-
Hi guys This is a general question which I hope you can help me with. I'm not really into ASP 3.0 that much, but in this case im forced to use it :sigh: Anyways ... I have a backend component (a DLL) written in C#, which contains methods needed in the ASP frontend. My question is... How do I access my DLL from the ASP code? Is it even possible? Examples would be much appreciated! /Thomas
- Register your dll. 2) use Server.CreateObject(Name of dll) to create an object. Dim s set s=server.createobject("XXX") where XXX is your dll now you can use the properties and method defined in your dll. like s.XYZ s.PPP
vikash
-
- Register your dll. 2) use Server.CreateObject(Name of dll) to create an object. Dim s set s=server.createobject("XXX") where XXX is your dll now you can use the properties and method defined in your dll. like s.XYZ s.PPP
vikash
There's a lot more to exposing your object than just registering it. In order to do this, a COM compatible tlb has to be created and registered. There's a project property called "Register for COM Interop" that can be used to automatically manage this. This[^] article gives more details on what you need to do to your code to use it properly through COM/COM+.
Deja View - the feeling that you've seen this post before.
-
There's a lot more to exposing your object than just registering it. In order to do this, a COM compatible tlb has to be created and registered. There's a project property called "Register for COM Interop" that can be used to automatically manage this. This[^] article gives more details on what you need to do to your code to use it properly through COM/COM+.
Deja View - the feeling that you've seen this post before.
-
- Register your dll. 2) use Server.CreateObject(Name of dll) to create an object. Dim s set s=server.createobject("XXX") where XXX is your dll now you can use the properties and method defined in your dll. like s.XYZ s.PPP
vikash
-
No problem. Glad to help.
Deja View - the feeling that you've seen this post before.
-
Thanks dude
vikash