G
Guest
How to catch errors thrown by the base class constructor in c# app?
Any help greatly appreciated.
Any help greatly appreciated.
SEB said:How to catch errors thrown by the base class constructor in c# app?
SEB said:thank you for your replay.
Can your idea be done using delegate? if so is it possible to prevent using
static methodes?
SEB said:Thanks for your patient.
My issue is the base class need to performe several checks like settings,
IPs, autorization, ... If one of those is not valide i need to halt the
application.
And because I have too many pages (over 100) and client change their mind ,
i want all the processing be done in the base class rather then apsx classes.
so any changes will be easy to manage. So using the delagate will register a
function of the derived class in the base class if any thing goes wrong the
base class will call that function which will have access to all page's
controls.
Is that right Jon? i dont want to make changes to every page. Exemple of
that the client came and says i want the visitor IP to be included in my
report.
And because the client is King, it made me crazy because i had to change
several pages