Dynamic Compilation, Multiple *.vb Files

G

Guest

Okay, you'll probably think me crazy for asking this. And I am, but also
curious; so please humor me. :)

I'm wondering if there's a way to - using dynamic (server-side) compilation
- include a ".vb" file from another ".vb" file.

For example, let's say I've got a page called Test.aspx, with the following
Page directive:

<%@Page Language="vb" Src="Test.aspx.vb"
Inherits="MyWebProject.MyTestPage" %>

Note how it's using dynamic compilation so I don't need to pre-compile
anything in Visual Studio. This is all well and great until we start talking
about inheritance.

Typically you might expect MyWebProject.MyTestPage to inherit from
System.Web.UI.Page; in this case, however, MyWebProject.MyTestPage inherits
from MyWebProject.MyBasePage, which in turn inherits from System.Web.UI.Page.

My application runs fine when MyWebProject.MyBasePage is pre-compiled into a
DLL, but if I wanted to use dynamic compilation, is there a compiler
directive I can use from the Test.aspx.vb file to include "MyBasePage.vb"
from the Web server?

The main reason I ask is because I'm trying to understand how much code
*needs* to be pre-compiled, and ultimately how complex a Web project might
become for a large site.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top