There are two ways to catch and re-throw an exception, below the two code snippets: Snippet #1: 1: try 2: { 3: 4: } 5: catch (Exception ex) 6: { 7: throw ex; 8: } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas...
Sometimes when you connect to an external host and you get for example the error “The request was aborted: Could not create SSL/TLS secure channel”, you want to have more detailed info about what causes the error. .NET has a build in diagnostics meganism...
Most people use alert() to debug their JavaScript, but the Microsoft Ajax Library has a better alterative Sys.Debug . Sys.Debug has some methods for logging messages to the browser console. Like this: To log a message: Sys.Debug.trace(“Log to the console...