Click here to Skip to main content
15,887,434 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Get URL/Webpage address in Back Button (JavaScript) Pin
Navi1528-Aug-06 1:36
Navi1528-Aug-06 1:36 
GeneralOwn webiste [modified] Pin
Anu_Bala27-Aug-06 20:28
Anu_Bala27-Aug-06 20:28 
GeneralRe: Own webiste Pin
Sarath C27-Aug-06 20:31
Sarath C27-Aug-06 20:31 
GeneralRe: Own webiste Pin
L Viljoen27-Aug-06 20:51
professionalL Viljoen27-Aug-06 20:51 
GeneralRe: Own webiste Pin
Alsvha28-Aug-06 1:41
Alsvha28-Aug-06 1:41 
GeneralRe: Own webiste Pin
Jörgen Sigvardsson28-Aug-06 1:58
Jörgen Sigvardsson28-Aug-06 1:58 
GeneralRe: Own webiste Pin
#realJSOP28-Aug-06 2:28
mve#realJSOP28-Aug-06 2:28 
QuestionGlobal Exception Handling Problem Pin
aenon26-Aug-06 5:39
aenon26-Aug-06 5:39 
Hi Guys,

We have an app with 3 tiers a data,bussiness and presentation layer(asp.net 2.0). Any exceptions thrown by the data layer are caught and logged by the business layer, which then throws a custom exception to the ui which displays a simple message to the user which does not divulge any sensitive information to the user.it is unwanted to have a try catch block for every method in the business layer which is growing considerably so i want to catch the unhandled exception in one generic catch for the business layer (see below), this method would log the exception,send out notifications and create new custom exception which would be thrown to the presentation layer. All classes in the business layer would subclass a base class which would have the code that assigns the unhandled exception delegate in its constructor. the code works in an console application but it does'nt work in a Class Library Project which is what our bussiness tier is. The Application_UnhandledException is called if it's in console,or normal windows app but i need this method to be called in a class library project. Any assistance is greatly appreciated,it become very urgent to get this working. Thanks guys

e.g
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

public static void Application_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
if (e.ExceptionObject is System.Exception)
{
//TODO LOGGING CODE,notifications ETC
}
}

The Global.asax file in the presentation layer would catch the final custom exception in the application error method. The message the user would see is simple e.g An Error Occured. The Error was logged and the support team has been emailed details of the error, please contact you admnistrator for further assistance.So The ErrorPage.aspx would use the innerexception of the exception object (CustomException) and display the simple message contained in it

void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
Exception exc = Server.GetLastError();
Session.Add("LastError",exc);
Response.Redirect(@"~\ErrorPage.aspx", true);
}


AnswerRe: Global Exception Handling Problem Pin
Guffa27-Aug-06 8:13
Guffa27-Aug-06 8:13 
Questionmatching pages range Pin
248912825-Aug-06 23:41
248912825-Aug-06 23:41 
AnswerRe: matching pages range Pin
Guffa27-Aug-06 6:27
Guffa27-Aug-06 6:27 
QuestionAjax download and tutorial directory Pin
scriptsajax25-Aug-06 7:33
scriptsajax25-Aug-06 7:33 
Questionhow to implement runtime webparts,webpartzone Pin
ketan.raval25-Aug-06 5:59
ketan.raval25-Aug-06 5:59 
QuestionCreating New WebSite in VS2005 Pin
jigneshnpatel24-Aug-06 20:42
jigneshnpatel24-Aug-06 20:42 
Questionsimple Pin
rajmani24-Aug-06 20:26
rajmani24-Aug-06 20:26 
AnswerRe: simple Pin
_AK_24-Aug-06 21:02
_AK_24-Aug-06 21:02 
AnswerRe: simple Pin
Guffa24-Aug-06 22:37
Guffa24-Aug-06 22:37 
QuestionJavascript DateAdd function Pin
Nitin198124-Aug-06 18:59
Nitin198124-Aug-06 18:59 
AnswerRe: Javascript DateAdd function Pin
_AK_24-Aug-06 21:07
_AK_24-Aug-06 21:07 
AnswerRe: Javascript DateAdd function Pin
Guffa24-Aug-06 22:40
Guffa24-Aug-06 22:40 
GeneralRe: Javascript DateAdd function Pin
Nitin198125-Aug-06 0:00
Nitin198125-Aug-06 0:00 
AnswerRe: Javascript DateAdd function Pin
Guffa25-Aug-06 2:33
Guffa25-Aug-06 2:33 
QuestionASP.NET 1.1 WebService works fine when called from JavaScript -- but when a simple parameter is passed from JavaScript using a SOAP Envelope, it is not received in the WebService - what gives ? Pin
Fine Foot24-Aug-06 10:04
Fine Foot24-Aug-06 10:04 
AnswerRe: ASP.NET 1.1 WebService works fine when called from JavaScript -- but when a simple parameter is passed from JavaScript using a SOAP Envelope, it is not received in the WebService - what gives ? Pin
Fine Foot24-Aug-06 11:17
Fine Foot24-Aug-06 11:17 
QuestionAnything like codebehind for .asp? [modified] Pin
veekay824-Aug-06 9:44
veekay824-Aug-06 9:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.