How to use C# code in ASP 3.0?

  • Thread starter Thread starter DP
  • Start date Start date
D

DP

Hi,

I'm a .NET beginner. I want to write some code in C# and able to use
that code in ASP 3.0 scripts. Do I have to convert the C# code to DLLs
or ActiveX objects? And how?

Please help or point me some directions.

Thanks much.
DP.
 
I'm a .NET beginner. I want to write some code in C# and able to use
that code in ASP 3.0 scripts. Do I have to convert the C# code to DLLs
or ActiveX objects? And how?

Yes - you need to create your C# assembly as normal and then create a COM
wrapper for it. This, essentially, allows unmanaged code (i.e. not written
in .NET) to interface with your C# assembly as if it were a "normal" COM
object.

Google for C# .NET COM wrapper
 
Hi,

Why dont you use asp.net instead?

If not posssible for some reason, then you need to create a dll in c#,
register it as a com object and then you can use it from your code.
 
Thank you. It seems to be not easy for me, especially the COM stuff.
Anyway, thanks for showing me direction. BTW, I have to extend the big
existing ASP3.0 project so I can't use ASP.NET.
DP.
 
Back
Top