bungpeng Posted December 11, 2002 Posted December 11, 2002 I applied 3 tier architecture (User Interface Layer, Business Layer, Database Layer), I use VB.NET in Business and Database Layer in DLL files format. The User Interface layer I use ASP.NET, so I need to call DLL in ASP.NET. There are few methods, which one is better? speed? stable?....? Example of these methods like Object Tags (<OBJECT...>), Server.CreateObject, or use <%@ Import....>.... Quote
*Gurus* Derek Stone Posted December 11, 2002 *Gurus* Posted December 11, 2002 You can't use <object> tags, since they are client-side, nor can you use Server.CreateObject, since that method is present in order to access COM DLLs. Instead, what you should do is compile the page as a code-behind, referencing the VB.NET DLL in your compiler arguments. Then, it's just a simple matter of importing that namespace, declaring an instance of the class and invoking its methods. Quote Posting Guidelines
Moderators Robby Posted December 11, 2002 Moderators Posted December 11, 2002 Otherwise there's no point in doing this in .NET Quote Visit...Bassic Software
bungpeng Posted December 13, 2002 Author Posted December 13, 2002 May I know what is "compile the page as a conde-behind"? Quote
Moderators Robby Posted December 13, 2002 Moderators Posted December 13, 2002 Before going into any detail, have you done/practiced any asp.net apps or pages? Quote Visit...Bassic Software
bungpeng Posted December 13, 2002 Author Posted December 13, 2002 Of course I did, actually I am doing R&D on .NET, but I am still new, many new features I still not sure. I did test the database access speed between ASP and ASP.NET, the performance is about 10~20% faster with SQL database. Quote
Moderators Robby Posted December 13, 2002 Moderators Posted December 13, 2002 The reason I ask is because you seemed baffled by Derek's statement on Code-Behind. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.