I created two separate VS2003 projects - web app with asp.net in vb and a class library. My goal is to create one dll that will contain all common code and have this code used by the web app.
1. class library: MyBase
'contents of BasePage.vb
Imports System.Web.UI 'Error - Namespace or type 'UI' for the Imports 'System.Web.UI' cannot be found.
Public Class BasePage
Inherits Page 'Error - Type 'Page' is not defined.
1.1. Why the errors?
1.2. Once the errors are corrected, can I put the dll on the web server and use it in the web app?
2. asp.net/vb: testbase
Add a reference: in the dialog box, click .Net and browse to find the MyBase.dll. What I'd like to do is inherit the base page as opposed to the System.Web.UI.Page:
'contents of default.vb
Public Class WebForm1
2.1 why do i get errors?
what is the best way of doing this?