Archive for January, 2007

Crystal Reports Deployment project

To deploy web sites that use Crystal Reports a Deployement Project must be created to ensure all needed files make it to the deployement server.It is possible to add a Deployment Project to your solution so you can deploy the complete application at once. I opted to create a stand-alone Delpoyment Project so that I [...]

More »

Get PublicKeyToken of a .NET assembly

The command line utility sn.exe (part of Visual Studio 2003/2005) can be used to get the PublicKeyToken of a .NET assembly, provided it is compiled as a strongly named assembly.Syntax: sn.exe -T assembly_name.dll (with -T not -t) Because I use this often, I added the action to the Explorer context menu with these steps: – [...]

More »

System.Caching.Cache (vb)

Iterate cache items For Each item As DictionaryEntry In Context.Cache Response.Write(item.Key.ToString) Next or to programmatically clear all items in the cache: For Each item As DictionaryEntry In Context.Cache Context.Cache.Remove(item.Key.ToString()) Next

More »

Custom configSections in Visual Studio 2005

Custom configSections are not properly reqognised by Visual Studio 2005. All the lines will set off warnings when compiling.Now, warnings can be ignored and you project might work fine. But I like to work tidy, and a project without warnings definitly helps there. So, to get VS to reqognise your configSections, you need to tell [...]

More »

Using IEWebControls with .NET 2.0

After converting a large .NET 1.1 project to .NET 2.0 I found that the IE Webcontrols (Microsoft.Web.UI.WebControls namespace) I used where no longer functioning. Because the TabStrip control was an essential part of the project, it was paramount to get the controls working again. After some research I came up with the following sollution: 1. [...]

More »

Use HttpHandlers to add a copyright message to jpg files

HttpHandlers provide a simple programming interface to handle certain file types. This article shows an example of how to add a copyright message to every jpg file served by you IIS webserver.[note]Unfinished article[/note] ||Introduction|| HttpHandlers are used by .NET to handle all sorts of file types, like .aspx, ascx, etc. In fact, about every request [...]

More »