It's in the root. Friend definitely will not work. I tried moving the
..aspx and the aspx.vb files to app_coode, but that generates ambiguous
referrences and/or 'context' is not defined.
The really sick part is. I created another page where the class is also
inherited from Webmain, and THAT ONE WORKS! I see no consistancy whatsoever
with this, as the 2 pages and assiciated classes look identical to me. So
much for backwards compatability with MS.
"Scott M." wrote:
Where are you creating WebMain?
Is it in your root namespace? Also, try changing the scope from Public to
Friend.
"Doug" <Do**@discussions.microsoft.comwrote in message
news:5E**********************************@microsof t.com...
In VB.NET 2003 I was doing the following(in codebehind) and it worked
great.
In 2005 "WebMain" in no where in scope. How do I make "WebMain" visible
to
all Code-Behind classes? Note: these classes are codebehinds of web
pages.
Here's the weird part, I had it work once , then it never worked again.
Public Class WebMain
Inherits System.Web.UI.Page
Protected Utilitiess As New Utilities
End Class
Public Class Foo
Inherits WebMain
End Class