Simple example of error handling using base class inheritance?

D

Doug

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.
 
D

Doug

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.
 

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

Top