troubleshooting Question

how to use base page

Avatar of fwsteal
fwsteal asked on
18 Comments1 Solution497 ViewsLast Modified:
I created two separate VS2003 projects - web app with 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
Imports System.Web.UI 'Error - Namespace or type 'UI' for the Imports 'System.Web.UI' cannot be found.
Namespace BasePageVB
Public Class BasePage
Inherits Page 'Error - Type 'Page' is not defined.
End Class
End Namespace

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?
     ex: wwwroot/bin/MyBase.dll

2. 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
Imports System

Public Class WebForm1
    'Inherits System.Web.UI.Page
    Inherits [MyBase].BasePageVB

2.1 why do i get errors?

what is the best way of doing this?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 18 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros