I have just redeveloped some vbscript in to c#.net and i have it working well.
However the function contained within the aspx.cs page that i have developed really needs to be used within a asp page.
Is there anyway that i can use my aspx.cs functions within an classic asp page.
Maybe using an include. If i can’t it just makes the work that i have about 4 times larger or maybe i have to persuade someone to accept a different approach.
ASP.NET and classic ASP are two completely different technologies. Classic ASP is an interpreted system while .NET is a compiled. So the only way to mix them is either using some interoperable format (such as SOAP) or maybe
iframeinclusions. There’s also another possibility: you could externalize this function into a class library of its own and expose it as a COM type using the regam.exe utility and consuming the resulting component from classic ASP:Once registered you could simply
CreateObjectin vbscript to instantiate the .NET class. Also make sure that the managed assembly is decorated with the COMVisible attribute so that the types would be visible.