ASP.NET DLL's seeable by classic asp?

DrochesoLoLex

New Member
Hi. one quick quesion... then a few extras.<BR><BR>1. Let's say I create a project through .NET Architect... I build it, and it works fine. Basically this project consists of an aspx file that creates an object class I made... This class I made, is in a DLL... It's namespace is 'test' and it's classname is 'contact'... So the way I got to it is I first imported namespace="WebProject1"... then obj = new test.contact... How, if possible, can I get to this class in just a regular .asp file? I tried WebProject1.Test, and WebProject1.Contact - neither worked... Am I missing the entire idea of something here?<BR><BR>You can't get a .NET component to work in a classic ASP page. ASP expects components to conform to the interfaces that COM provides, but .NET provides something new and different. So, to make it short, you can't use a .NET component through a classic ASP page. (Note that you can use a classic COM component through an ASP.NET Web page, but the perf. sucks. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/convertasptoaspnet.asp for more info...)Thank you for the reply and msdn link. :) <BR>
 
Back
Top