Using a DLL in ASPX page

  • Thread starter Thread starter Santosh
  • Start date Start date
S

Santosh

Friends,

I have a DLL which makes a connection to the database and other functions as
well.
I have been using this DLL sucessfully in asp based websites.
I want to use this DLL in aspx but with no sucess.

I want to create a siteheader.vb where in I want to Instantiate this DLL and
use it throughut the site by means of reference or by any other means.

An example would be

Dll Name: ccConnection.dll

How do I create it under a class in siteheader.asp and use it throughout the
aspx site.

Any help in code or links would be appreciated.
 
Sounds like you have a COM object (Component Object Model). COM is not
compatible with .Net. You need to create an Interop assembly and use that.
This is not simple to do. The following page on the Microsoft MSDN Library
online has links to various articles that can help you to work with COM
Interop:

http://msdn.microsoft.com/library/d...n-us/cpguide/html/cpconadvancedcominterop.asp

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top