Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP 3.0 vs. .NET component

ASP 3.0 vs. .NET component

Scheduled Pinned Locked Moved Web Development
questioncsharpvisual-studiohelplounge
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    piXy
    wrote on last edited by
    #1

    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

    B 1 Reply Last reply
    0
    • P piXy

      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

      B Offline
      B Offline
      bablu_singh
      wrote on last edited by
      #2
      1. 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

      P P 2 Replies Last reply
      0
      • B bablu_singh
        1. 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

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        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.

        P 1 Reply Last reply
        0
        • P Pete OHanlon

          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.

          P Offline
          P Offline
          piXy
          wrote on last edited by
          #4

          Hi Pete Thanks for the link to the article. Works perfectly! :-D

          P 1 Reply Last reply
          0
          • B bablu_singh
            1. 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

            P Offline
            P Offline
            piXy
            wrote on last edited by
            #5

            Hi Vikash Thanks a lot for the example! It works perfectly! Have a nice day! /Thomas

            B 1 Reply Last reply
            0
            • P piXy

              Hi Pete Thanks for the link to the article. Works perfectly! :-D

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              No problem. Glad to help.

              Deja View - the feeling that you've seen this post before.

              1 Reply Last reply
              0
              • P piXy

                Hi Vikash Thanks a lot for the example! It works perfectly! Have a nice day! /Thomas

                B Offline
                B Offline
                bablu_singh
                wrote on last edited by
                #7

                Thanks dude

                vikash

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups