473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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.

Jul 3 '06 #1
1 1661
I found this:

http://www.aspnetpro.com/NewsletterA...200305mc_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.

Jul 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Martin Magnusson | last post by:
Hi! I have a class with a private member which is a pointer to an abstract class, which looks something like this: class Agent { public: void Step( Base* newB ); private:
13
by: Walt Karas | last post by:
The following gives an error in the declaration of the member function x() of the class template Tpl, compiliing with a recent version of GCC under Solaris: class A { }; class B { }; ...
2
by: haplotype | last post by:
I have designed a package with several files, which is listed bellow base.cpp & base.hpp - define the template class base tree.cpp & tree.hpp - define the class tree derived from base<int>...
1
by: Greg | last post by:
System.Management.ManagementException: Provider failure I am getting this error when trying to get information on an external CD Rom Drive using WMI class Win32_CDROMDrive. Any ideas? The...
2
by: Andrew Ducker | last post by:
My UserControl base class has an event handling method in it. I want to use this for several controls on a subclass of this base class. Normally, I can just click on the drop-down and the methods...
0
by: Dave | last post by:
Hi, I'm having a problem with my web page. I made a user aspx page Child.aspx that inherits from a base class TemplatePage (TemplatePage.cs). The template class overrides Render, streams some...
0
by: Eric | last post by:
I am receiving the following error when trying to access a custom control (dll), actually all of the custom controls I build and add to the project: The base class includes the field 'xxx', but...
2
by: kaferro | last post by:
I have a base class that has about ten variables. Later, I have a derived class that adds five more variables. In the derived class' setData() function, I pass an instance of the base class, and...
1
by: simonrobshaw | last post by:
Hi, I need some help in making a design choice for a project which we are currently working on. My client has a VB6 application which we don't see them actually changing in the near future. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.