Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simple example of error handling using base class inheritance?

3 views
Skip to first unread message

Doug

unread,
Jul 3, 2006, 3:40:38 PM7/3/06
to
Can someone point me to a very simple example in VB.NET/ASP.NET of
inheritance from a base class? I would like to define a BasePage class
from which all of my pages can inherit.

I would like to use this as an error handler.

Thanks for any help you can provide.

Doug

unread,
Jul 3, 2006, 5:07:13 PM7/3/06
to
I found this:

http://www.aspnetpro.com/NewsletterArticle/2003/05/asp200305mc_l/asp200305mc_l.asp

and put it into my solution. Changed the first line in my
MainMenu.aspx.vb from "Inherits System.Web.UI.Page" to "Inherits
PageBase". Put a break on the first line of code and forced an error,
but it didn't go there. I currently have "CustomErrors mode="On" in
web config and defaultRedirect pointing to "ErrorHandler.aspx". Not
sure if I am mixing two dif't things together here or not.

0 new messages