Welcome to W3Courses
 Like Us on Facebook

Asp.net

Try Catch Statements for Error Handling in Asp.Net & C#

Error handling in Classic ASP was not the best. ASP.NET has a new error handling mechanism which was already in other languages such as C, C++ and JAVA. It is called the try...catch mechanism, which is also known as "Exception Handling".

This article provides insight about exception handling on the basis of ASP.NET and C# as code behind.

Share

Send Email Attachments from a Form using Asp.Net and C#

In order to send email attachements from a form, we first upload the file to a temporary location on the server. We then attach the file to the email message, execute the mail message to sent he email and finally delete the file from the temporary location.

Please follow the following steps to add attchment funtionality to you Asp.Net form using C#.

Share

Create a Checkbox List Web Control Using Asp.Net & C#

The CheckBoxList control creates a multiselection check box group. To specify items that you want to appear in the CheckBoxList control, place a ListItem element for each entry between the opening and closing tags of the CheckBoxList control. The CheckBoxList control can be dynamically generated using data binding as well.

Share

How to Populate Drop Down List with XML Source in Asp.Net

You can populate an Asp.Net DropDownList control with an Xml source. This becomes very handy while displaying static dropdown items such as list of states, months, days, dates etc.

First create an xml file, name it dropdown.xml and add the following code to the file

Share

Connection Pooling Parameters in ADO.NET

A connection pool is a cache of database connections maintained by the database so that the connections can be reused when the database receives future requests for data. Connection pooling behavior is controlled by the connection string parameters. The following are four parameters that control most of the connection pooling behavior:

Share

Problems with Connection Pooling in ADO.Net (Closing Connections) in Asp.Net

A connection pool is a cache of database connections maintained by the database so that the connections can be reused when the database receives future requests for data. Connection pooling problems are almost always caused by a "connection leak". Connection leak is a condition where your application does not close its database connections correctly and consistently.

Share