Groups | Blog | Home
all groups > dotnet faqs > march 2004 >

dotnet faqs : Using VB.Net objects in .ASP pages


owen
3/17/2004 8:18:34 AM
I have standalone VB.NET, that is, not the whole VS.NET environment, just
VB.NET. So I can develop VB.NET objects but not ASP.NET (aspx) pages.
Therefore I want to write a Business layer in VB.NET and call it's objects,
methods, etc. from ASP pages. Is this possible?

An example of embedded VB.NET method calls inside .ASP would be great, but
any other advice or pointers greatly appreciated.!

Owen

news.microsoft.com
5/3/2004 4:26:03 PM
Yes, you bet your cahoones it's possible! Create your VB.Net project as a
public assembly, do this by creating a VB.Net Library project.

After your done programming you can use the RegAsm.exe utitlity to register
your assembly so that it will be exposed to a COM interface, at which time
you will be able to use ASP's Server.CreateObject, and just call away!!!


HTH

Nick Harris, MCSD
[quoted text, click to view]

AddThis Social Bookmark Button