Communicating between .net .dll and asp

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I'm looking to pass two variables from an asp page to vb.net dll.

IE. intA= 1 intB = 4

The dll should add these two integers together and return 5.
[intA+intB]

I know this is a simple example that could be done within asp easily
but I'm trying to understand how the DLL communicates with asp.

If someone would be kind enough to post the .dll code and the asp code
it would be greatly appreciated. I'm just not finding what I need in
the MS help files.

-Peter
 
With .NET, you have to create a COM callable wrapper (tlbexp.exe) or place
the DLL in COM+ (component services) to have it callable by ASP (which uses
COM). With VB6, you can more easily call the DLL, as it is COM, not .NET.

Hope this makes sense.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
 
Peter said:
I'm looking to pass two variables from an asp page to vb.net dll.

IE. intA= 1 intB = 4

The dll should add these two integers together and return 5.
[intA+intB]

I know this is a simple example that could be done within asp easily
but I'm trying to understand how the DLL communicates with asp.

If someone would be kind enough to post the .dll code and the asp code
it would be greatly appreciated. I'm just not finding what I need in
the MS help files.

I'm sorry but I don't have the time to write complete examples like that.
Try looking in the documentation/MS website for COM Interop and regasm.exe,
you should be able to find what you need.
 
Hi Peter,

I still want to try this, however I think that remoting is the route to
search for in this case.

Cor
 
Back
Top