C# Corner

Resources  
  • ADO.NET DataSet ProgrammingMar 20, 2001. A sample project shows you how to add, edit, delete, navigate, save records in a database using DataSet.
  • Assemblies : The Ins and Out : Part IApr 13, 2001. In Part 1, I will cover what exactly an assembly is, and what an assembly contains.
  • Assemblies : The Ins and Out : Part IIApr 16, 2001. In this part, I will discuss both Private and Shared assemblies and how to create a "Shared Assembly".
  • Assemblies : The Ins and Out : Part IIIApr 20, 2001. In this part I will discuss in more detail than Part 2, the available utilities for manipulating assemblies.
  • Exception HandlingJun 12, 2001. Exceptions in C# provide a structured, and type-safe way of handling both system level and application level error conditions. The exception mechanism in C# is very similar to that of C++, with a few important differences.
  • Exception HandlingJul 21, 2001. Exceptions in C# provide a structured, and type-safe way of handling both system level and application level error conditions. The exception mechanism in C# is very similar to that of C++, with a few important differences.
  • Displaying Exception InformationAug 21, 2001. This is a simple utility to display exceptions. Each exception in the chain is added to an ArrayList and displayed in reverse order in a ListView control.
  • Exception Handling in C#Oct 17, 2001. Exception handling is a builtin mechanism in .NET framework to detect and handle run time errors.
  • Exceptions and Exception StackNov 16, 2001. The purpose of this tutorial is to explain firstly how you would go about creating your own set of exceptions to trap error conditions that could occur in your code or library, for your own benefit or for the benefit of another developer using your library. The second lesson is on how the C# exception stack works, and how you can use it to catch all types of exceptions.
  • Exception Handling in C#Jan 03, 2002. In C# Exception is a class in the system namespace. An object of an exception is that describe the exceptional conditions occur in a code That means, we are catching an exception, creating an object of it, and then throwing it. C# supports exceptions in a very much the same way as Java and C++.
  • Real-time Message Logging Utility - Part 1Apr 01, 2002. A message logger is a utility that helps in logging the messages thrown from functions/programs. It is useful in critical applications as it helps to know the time taken by a function to execute, the time that the function remained idle and any messages that the function wants to be logged for further analysis.
  • Custom Error Handling in ASP.NETMay 30, 2002. Structured exception handling is a fundamental part of the CLR and provides .Net programmers a great way of managing errors. In addition to CLR exception system, ASP.Net also provides ways of handling errors.
  • Pro Developer: Throwing Money Out the WindowDec 18, 2002. It's common knowledge among programmers that most of the ills of the software industry, and most particularly the companies where we work, could be solved by simply letting the technical people make the technical decisions. In fact, that sounds so obvious that you might be tempted to shake your head and wonder what planet I come from. Obviously, since this is so incredibly logical and sensible, it's a given that most companies leave management decisions to managers, and technical decisions to techies, right?
  • The "ins" and "outs" of Using Stored Procedures in C#Jan 27, 2003. This article reviews the creation of stored procedures with parameters using the Visual Studio IDE.
  • J2EE to .NET Migration: Quick TipsMar 26, 2003. Here are some Quick tips to get you started, in case you need to migrate a J2EE based application to a .NET based application.
  • Basics of Extending Your Working Environment in Visual StudioApr 10, 2003. All of us have used Macros in Microsoft Office and Add-ins in Visual Studio 6 and I am very sure all of us have been impressed as well by their power to control their own working environment.
  • Custom Exceptions using Microsoft Exception Management Application BlockSep 02, 2003. This article shows you how to use Microsoft Exception Management Application Block to write custom exceptions.
  • Hello World in different StylesJan 09, 2004. I've attempted to write the traditional 'Hello World' in different styles. This explores the different possibilities of addressing a problem - 'Hello World' with different features of C# language and .NET framework.
  • Getting Started With Exception Handling in C#Jul 14, 2004. This article explores exception handling mechanisms in C#, including an explanation of exceptions and why we need to catch exceptions.
  • Logging Errors in a XML FileAug 26, 2004. Error handling and logging errors at a common place is something, which is required in every piece of code you write. The attached source code is an error logger class that I've used in all of my applications. This class writes errors to XML files.
  • How to Write a Method in C#?Sep 23, 2004. This sample shows to write a windows application that gives you the - C# - method throw a simple 4 steps.
  • Best Practices of Exception ManagementMar 08, 2005. Exception management is one of the key area for all kinds of application development .You should adopt an appropriate strategy for exception management to build high quality and robust application .It is a very powerful concept and makes the development work very easy if its used efficiently.
  • Creating simple Add-in for Visual Studio.NETMar 16, 2005. An add-in is a tool that you create programmatically by using objects, methods, properties, collections in .NET's extensibility model. This compiled application enables you to automate the difficult and tedious tasks within the visual studio integrated development environment (IDE).
  • Publishing Exception in SPS Web PartsApr 11, 2005. This article tells the safe way of publishing exceptions using Microsoft Exception Management Application Blocks from WebPart.
  • Custom Exception Handling in C#May 17, 2005. This article discusses the implementation of Custom Exception Handling using the existing features of C# .Net.
  • Custom Error Handling Using ASP.NETJul 07, 2005. Sometimes in your application, you may want to show some decent error messages other than red error messages and some message when page is not found or server is busy. We will see custom error message handling mechanism in this article using ASP.NET.
  • Better Exception Handling in Visual Studio 2005Nov 16, 2005. With many new cool features, components, controls, and tools, Visual Studio 2005 definitively is a winner. In this article, I discuss the new exception handling dialog in Visual Studio 2005.
  • Auditing and Logging ExceptionsFeb 01, 2006. This article shows how to handle a SQL Server error condition by using the SQL Server .NET Framework data provider.
  • Exception ManagementFeb 02, 2006. Correct exception handling in your Web pages prevents sensitive exception details from being revealed to the user. The following recommendations apply to ASP.NET Web pages and controls.
  • Customized Exception Handling Using Resource FileMar 03, 2006. A good exception handling should care about user as well as developer. i.e. developer can easily locate the exception entry point, may be a function or any where in a vast project, and fix it as soon as possible. So in this writing I tried some exception handlings which will consider both user and developer.
  • The request failed with HTTP status 401: Access DeniedJun 30, 2006. An unhandled exception occurred during the execution of the current Web request. Please review the stack trace for more information about the error and where it originated in the code.
  • The request failed with HTTP Status 405: Method Not Allowed.Jul 04, 2006. PDSTest.NET Exception Occurred while processing the request. The request failed with HTTP Status 405: Method Not Allowed
  • Six Java features C# developers will kill for...Jul 06, 2006. Not everything on the .NET framework is perfect, and Microsoft still has more improvements to implement. This time we will look at six features available to Java developers but unfortunally absent from C#.
  • Dynamic Code CompilationNov 30, 2006. This article throws light on how a code can be built dynamically, compiled and run.
  • Exception Handling in VB.NETJun 25, 2007. Exception handling is crucial since the robustness of software depends on how effectively a program deals with exceptions.
  • Connection PoolingAug 11, 2007. While performing any database activity it is necessary that every single connection need to be closed, but in case your application throws some exception in that case our connection wont’ get closed. And you will get error “Cannot open connection, it is already open” In this article I will be discussing what is connection pooling? Why connection polling & how we can enable connection pooling etc.
  • Free Book: C# Programming for BeginnersAug 21, 2007. In this book, you will learn how to write and compile C# programs, understand C# syntaxes, data types, control flow, classes and their members, interfaces, arrays, and exception handling. After completing this book, you should have a clear understanding of the purpose of C# language, it’s usages, and how to write C# programs.
  • Introduction to Building a Plug-In Architecture Using C#Sep 10, 2007. In this article we'll take another look at how we can use the state pattern to build a plug-in architecture that will allow us to change the behavior of our application by placing differnt plug-ins into a folder.
  • Best Practices for handling exceptionsSep 18, 2007. This article shall explain some of the best practices when you deal with exceptions.
  • Exception Handling in WCF using Fault ContractJan 03, 2008. This article demonstrates how to get error information from a service to a client using fault contract in WCF.
  • Exception and error handling in enterprise applicationsJul 31, 2008. In this article, I try to cover the key principles and the main techniques of exception and error handling with examples in SQL Server, Oracle and Microsoft .NET.
  • Silverlight Tutorial: How to Create an Animation of a Ball Being ThrownAug 06, 2008. This tutorial explores the XAML involved in Silverlight animations and provides step by step instructions on how to create an animation of a ball being thrown and bouncing across the floor.
  • Introduction to Visual Studio Add-insMar 03, 2009. This article explains about Visual Studio 2008 Add-ins.
  • Introduction to Interfacing Win Forms with VS Add-insMar 04, 2009. This article explains about integration of Windows Forms with Visual Studio Add-ins.
  • Exception handling using Enterprise application block in 6 StepsMar 20, 2009. Exception handling is one of the most important tasks in any application. Many applications either do not handle applications or they handle it in an adhoc manner. In this section we will see how we can use the readymade exception handling block so that we do not need to code and build error handling routines from scratch.
  • Paging and Sorting ListViews with ASP.NET MVC and jQueryMar 23, 2009. This article provides a simple example of using jQuery along with the jQuery tablesorter and tablesorter.pager plug-ins to provide sorting and paging support for a listview within the context of an ASP.NET MVC application. JQuery has partnered with Microsoft and is now integrated within the IDE to include the availability of intellisense support.
  • Rectifying MACHINE CHECK EXCEPTION Error Message in Windows XPMay 18, 2009. A STOP error message in Windows XP is typically caused after your computer encounters a serious system error. Two major consequences that you might face after the occurrence of a STOP error can be unbootable hard drive and data inaccessibility.
  • Exception Handling in C#Jul 08, 2009. This article explains you about exceptional handling in C#. How to use try, catch, finally block to handle exception handling
  • Handling Service Side Exception and Faulty Channel at Client Side in WCFAug 04, 2009. In this article, I will show different approach to deal with service side exception and channel fault at client side. I will do a comparison study between various approaches and I will provide best approach also.
  • Exception Handling in C#Aug 19, 2009. In this article we will see exception handling technique in C#.
  • Guide to Improving Code Performance in .NET: Part IISep 01, 2009. This article explains about better Exception Handling practices in C#.
  • Exception handling in C#Sep 14, 2009. This article explains about the Exception handling in C# with code example.
  • AccountPlusOct 13, 2009. AccountPlus is an application which can be used for shared account/expense management with proper reporting and general analytics.
  • Exception Handling in C# Dec 21, 2009. In this article I will explain you about Exception Handling in C#.
  • Exception Statements in C#Dec 24, 2009. In this article I will explain you about Exception Statements in C#.
  • Creating Your Own Exception Classes in C#Dec 29, 2009. In this article I will explain you about Creating Your Own Exception Classes in C#.
  • Throw Statement in C# Jan 01, 2010. In this article I will explain you about Throw Statement in C#.
  • Propagation of Exceptions in C# Jan 02, 2010. In this article I will explain you about Propagation of Exceptions in C#.
  • LINQ to XML Part 5: Catching Parsing ExceptionsFeb 22, 2010. This is a very high level article which will explain how to handle exception in parsing XML using LINQ to XML.
  • As Operator in C#Feb 24, 2010. The As operator in C# is used to convert from one type to another. You can use casting to cast one type to another but if you apply casting on incompatible types, you will get an exception.
  • Demystifying CLR: Part IMar 15, 2010. In this article, I am going to explain fundamentals of CLR.
  • How to Create a Custom Exception Error Page in SharepointApr 12, 2010. In this article we will see how to create a custom unhandled exception error page in Sharepoint.
  • Customized Exception Handling May 05, 2010. In this article you will learn how to use Customized Exception Handling Using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling
  • Fault Contract in WCF With Learning Video May 25, 2010. This article will give basic introduction on how to handle exception at service side, how to use fault contract at service side and how to handle service exception at client side.
  • Exception while creating the sub webJun 07, 2010. In this article you will learn how to resolve security validation exception while creating the sub web.
  • Creating a exception logger window in SilverlightJul 19, 2010. In this article I will describe how to handle the exceptions in Silverlight.
  • Exception Handling in Visual COBOL.NETAug 16, 2010. Let's start by taking a look at a simple and pretty standard COBOL way of handling exceptions. We’ll then see how that same example would be coding in a managed environment utilizing Visual COBOL.NET.
  • WebException or Remote Server Name Could not be Resolved in WCF Data ServiceAug 19, 2010. This article will give a brief explanation on how to handle remote server name could not resolved exception in WCF Data Service.
  • Handling exception in SharePoint 2010 object modelNov 15, 2010. In this article I will show how to handle the exception "Web application not found" in SharePoint 2010 object model.
  • Setting Up the Firewall on Local System/Computer to Connect to SQL AzureDec 10, 2010. If we want to connect to SQL Azure from a local system then we need to create an exception in the local firewall for TCP port 1433.
  • WPF-Validations On All Database OperationsApr 27, 2011. This article shows how to use validation whenever a user enters data. By using validation you will stop entering the wrong data into the database and avoid exceptions.
  • Exception/Error Handling in C#: Part 1Jun 13, 2011. In this quick article you will learn Error Handling mechanisms available in C#.
  • Exception Error Handling Log Maintenance in a Text File: Part 1Jul 08, 2011. In this article I will describe how to log program exceptions and save into a text file.
  • Exception Error Handling Log Maintenance in a Text File: Part 2Jul 11, 2011. In this article I will describe how to use the "ErrorHandling" dll when an exception happens and how to register the Exception in a text file.
  • Creation of a Java Bean And How it is Used in Java Server PagesJul 29, 2011. Here you will see how to create a Java bean and how it is used in Java Server Pages (JSP)
  • Create Tag Library Descriptor And Use in JSPJul 30, 2011. It is a process to create user-defined tags which can perform any task in the server. It provides a facility to separate Java code or scriptlet from JSP. This tag follows XML syntax.
  • Ins Tag in HTML5Aug 02, 2011. The ins tag defines text that has been inserted into a document.
  • Display Data from Database through JSP And JDBCSep 15, 2011. In this article we will know how to display the records from the database using JSP through JDBC connection.
  • Display Related Data From Database Through JSPSep 15, 2011. In this article we will know how to display related records from the database into a table when we choose any item in a combo box using jsp through jdbc connection.
  • Introduction of JSP (Java server pages)Sep 15, 2011. It is a mechanism to create dynamic web pages by using servlet behind it. Whenever a user comes to access the JSP then the web server converts the JSP into a servlet for processing the request and providing response.
  • Include and Forwarding request in JSPSep 20, 2011. Here you will see Include and Forwarding request in JSP.
  • Registration page in JSPSep 26, 2011. In this article we will learn how create to a simple registration page using JSP.
  • User Tracking in Java Server PagesSep 27, 2011. In this article we will learn about user tracking in JSP.
  • Creating a form based application in StrutsOct 03, 2011. Here you will see how to create a form based application in Struts.
  • Creating form based application in Java Server Faces (JSF)Oct 03, 2011. Here you will see how to Create a form based application in Java Server Faces (JSF).
  • Introduction to JSF (Java server faces) frameworkOct 04, 2011. Before going forward we should know about Model 1 and Model 2 Architecture.
  • Work with Exception Handling in WorkflowOct 10, 2011. An Exception is an event which occurs during the execution of a program. This article will explain about Exception Handling in Workflow.
  • Add, Edit, Update and Delete in JSPOct 10, 2011. In this article we will learn how to insert, edit, update and delete records from the database using JSP.
  • Paging in Java Server PagesOct 10, 2011. In this article we will learn how to do paging in JSP.
  • Login Page in JSPOct 11, 2011. In this article we will learn how to do a simple login page using JSP.
  • Using star to call all setter methods of Java BeanOct 12, 2011. In this article we will learn how to use asterisk (*) to call all setter methods of a java bean. Before going forward we should know what a java bean is.
  • Display related records from the database when we click the show all link through JDBCOct 14, 2011. In this article we will learn how to display related records from the database when we click the show all link using jsp through jdbc connection.
  • XML Validation with XSD Along With Custom Exception Nov 01, 2011. In this article, I will discuss about validating XML against defined XSD. Prior to getting into this article, it is mandatory that one should have basic knowledge on what XML & XSD are.
  • FaultHandlerActivity in WorkflowNov 11, 2011. The FaultHandlerActivity has a FaultType property. This property represents the type of exception we want to catch.
  • Formating Tag's in JSTLNov 19, 2011. The format tag library provides the support for internalization, this provides the formatting of data in different domains.
  • CompensatableSequence Activity in WorkflowNov 19, 2011. The CompensateSequence Activity will provide compensation only if there is any error thrown. The CompensatableSequence Activity class inherits from Sequence Activity, it can contain any number of child activities that execute in order.
  • Starting with JSTLNov 19, 2011. Here you will understand the conecpt of JSP Standard Tag Library (JSTL), it is mainly the collection of four custom tag libraries.
  • Introduction Of JSP Scripting TagsNov 21, 2011. JSP scripting tags are very important tags which allow a java programmer to add a script code into the java code of a JSP.
  • Audio tag in HTML5Nov 22, 2011. This new element allows you to deliver audio files directly through the browser, without the need for any plug-ins. embedding the audio file into a web page via the src attribute.
  • Exception Handling and .NETNov 22, 2011. Error Handling has always been crucial for an application in a number of ways. It may affect the execution state of the application, or expose sensitive information to a user. If the error handling is not strong, it may aid the attacker, as the errors returned may assist them in constructing correct attack factors.

About How-to-Throw-Exceptions-in-JSP

NA

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
techbash 2016