|
-
Aug 2nd, 2004, 09:22 AM
#1
Name of Calling function [Resolved]
Hi,
I have Classes that are shared between web apps and windows apps. One of my class is an Error Hanlder which handles all errors and logs them. Now if the class is used in Windows App i display the error message using message box, now since in ASP.Net i cant display Message Box, i want to display the error message using Trace class.
Now what i need a way of identifying whether the class is used in ASP.net or C#. So i can do something like
if (Source) = WinApp
{
MessageBox(ex.Message);
LogError(ex);
}
else
{
WriteTraceInfo(ex);
LogError(ex);
}
Thanks for any help.
Last edited by Danial; Aug 3rd, 2004 at 04:17 AM.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|