Simple example of error handling using base class inheritance?
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.
Re: Simple example of error handling using base class inheritance?
I found this:
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.
|All times are GMT. The time now is 06:17 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.