ASP.NET

Latest stuff about Microsoft ASP.NET v1.x & v2.x.



Error: System.Security.Cryptography.CryptographicException: Keyset does not exist or Access is denied.

Posted on: 11/11/2008

This article provides a possible solution to fix the following exception: System.Security.Cryptography.CryptographicException - Keyset does not exist or Access is denied.


How To: Convert an object to XML string

Posted on: 11/10/2008

In this article we will show you how to output an object's data to an XML string.


Shortcut: No more hard coding the physical path to your access database in the ConnectionString section of your web.config

Posted on: 6/16/2008

If your database is located in the App_Data folder of your web application. Here is a neat little shortcut for your Access Database ConnectionString.


How To: Manually initialize a custom membership provider

Posted on: 5/08/2008

In this article, we will describe how to manually initialize a custom membership provider.


How To: Check a null value in a column of a DataTable in a DataSet

Posted on: 2/06/2008

This article will show some ways of checking for null values in a DataTable.


Shortcut: Use the @ Symbol instead of escaping slashes

Posted on: 1/29/2008

We all had to at one point or another modify a file path and escape the slashes before pasting it into our code or into a database table. Using the @ symbol in front of the string will eliminate the need to modify the path.


How To: Create and populate a DataTable manually

Posted on: 1/29/2008

This article will demonstrate how to create a DataTable manually and populate it with some random data.


How To: Easily take your ASP.NET 2.0 web application offline for maintenance updates

Posted on: 12/06/2007

This article describe how to easily take your ASP.NET 2.0 web application offline.


Error: System.Data.OracleClient.OracleException: ORA-01460: unimplemented or unreasonable conversion requested

Posted on: 12/05/2007

If you are using the Microsoft Oracle provider to call an Oracle Stored Procedure and passing a lot of data to a CLOB parameter, you get the following exception: ORA-01460: unimplemented or unreasonable conversion requested. This article will describe how to fix this.


How To: Separate your connectionStrings and appSettings configuration settings into external configuration files

Posted on: 12/04/2007

In this article, we will describe how to separate your connection strings and appSettings into external files from your web.config or app.config.


How To: Get the the client's computer name that is consuming a web service

Posted on: 11/28/2007

This article will show you how to get the client's computer name that is calling your web service.


How To: Overcome the 32k limitation of the event log

Posted on: 11/26/2007

This article will show you one way of overcoming the 32k character limitation of the event log. The sample code in this article can also be easily retrofitted to used the enterprise library.


How To: Divide a number and round it up

Posted on: 11/26/2007

This article will demonstrate how to divide an integer number and round it up.


How To: Configure the Enterprise Library 3.1 Logging Application Block to log the local server time

Posted on: 11/21/2007

The Enterprise Library Logging Application Block by default will log the timestamp in UTC time. In the Enterprise Library ver 3.0 and earlier, if you wanted it log the local server time, you can override the FormatToken method and implement you you custom logic. If you use the Enterprise Library 3.1, this is a very easy change which we will describe in this article.


Shortcut: Configure Simple Mail Transport Protocol (SMTP) settings in web.config

Posted on: 11/19/2007

Does your ASP.NET 2.0 application sends email, here is a shortcut to configure the SMTP settings in the web.config.


How To: Remove all HTML tags from a string using regular expressions

Posted on: 11/15/2007

This article will show you how to remove all HTML tags from a string using regular expressions.


How To: Add a row count column to a GridView, DataList or Repeater

Posted on: 9/07/2007

This article will show you how to add a row count column to a GridView. This technique can also be applied to a DataList or a Repeater.


Error: Nullable type fields not showing up in GridView

Posted on: 8/20/2007

When you have a collection of objects with nullable datatype members, they don't get rendered when binding to a GridView automatically.


How To: Convert an Array of Objects to a Generics List

Posted on: 8/15/2007

This article will show you how to convert an array of object to a generic list.


Error: Client application does not recieve any soap exceptions when the web service property named "OneWay" is set to true

Posted on: 8/13/2007

This article is about the OneWay property effects on a web service method