310 Redirect for Search Engines and Changed URLs

Say you have some pages indexed in search engines, but you want to change the URL of those pages. What you should not do: Do NOT delete the old pages […]

Continue Reading
Written By Ben Strackany

Updated dot net groups

A quick note to say I updated the groups archives a bit. Hopefully the changes are welcome. A test link or two: one and two

Continue Reading
Written By Ben Strackany

Blog test for <pre> vs <code> tag

I put a lot of code snippets into my blogs, so I’ve been using <pre> a lot, but I was wondering if I should use <code> instead (or in addition […]

Continue Reading
Written By Ben Strackany

HtmlEncode data in your ASP.NET DataGrid

OK, I didn’t know this, but I found out that a DataGrid BoundColumn will not automatically HtmlEncode your data. So if the data contains HTML entities (e.g. “hello this is […]

Continue Reading
Written By Ben Strackany

Recursively List Virtual Directories in IIS with C# and DirectoryServices

You’ve probably seen a lot of VBScript scripts that manage IIS via ADSI objects, but let’s say you want to write something in .NET. Maybe C#? Maybe compiled code, with […]

Continue Reading
Written By Ben Strackany

Reducing the .net WinForms memory footprint

WinForms applications sometimes take up a lot of memory for JIT, memory that isn’t needed once your application gets going. You can reduce the amount of memory being used by […]

Continue Reading
Written By Ben Strackany

Search and Replace with Perl

A quick update to my older blog about using Perl to do a very very fast find & replace on files. for /R c:path %i in (*.htm *.gif) do @c:perlperl.exe […]

Continue Reading
Written By Ben Strackany