I wrote a small function in C# that manipulates pdf files using itextsharp. Is it possible to call this function from a classic asp page?
-Vivek
Yes.
You can either expose your C# class via COM to the Classic ASP page or create a .NET Web Service that you can call from the Classic ASP page.
Personally, I would suggest exposing your C# class via COM (follow the "Exposing C# to COM" section).
Yes, if you register the C# assembly as a COM+ component (using regsvcs.exe
). You can then do this:
Set myObject = Server.CreateObject("mynamespace.myobject.myclass")
myObject.MyMethod()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With