Technorati Claiming

This is a post for Technorati claim: GXJ4WMJNGAMF

ASP.NET - Tagging and Hiding the columns of a GridView

This is a simple trick that came into my mind working on a legacy ASP.NET application, the scenario is: we have a series of components that use a GridView to show some data, each GridView have several columns and according to the situation some have to be hidden and some shown (depending on the client configuration).

The problem here is that you can access the GridView.Columns[] collection using only an integer indexer, the implementation I found just stored in the database a list of the integer corresponding to the columns to hide, and use a for cycle to do the job:

For Each id As Integer In indexes

Season of Change - goodbye Guardian’s Home, welcome PrimordialCode

Due to the recent problems with our web site host we were forced to do some changes to our blogs and we ended up registering our own domains. After some thinking I also decided to change the name of the blog to reflect the domain name I chosen.

I will keep on using the ‘Guardian’ nickname, as I always did in the past (for those that are curious it derives directly from my name, Alessandro in fact means protector, defender in short... a Guardian).

Then why choosing ‘PrimordialCode’ as the name of the blog? Well, my personal moniker (created by my beloved lady) has been the ‘Pig-tailed Mammoth’ for so long! And I like it a lot it always gave me an impression of ‘raw and blinded fury’ something very hard to stop or move aside...like me :D (I’m not properly a small guy in real life). So I wanted a name somewhat related to it.

This will be a new beginning and I planned some other changes to this blog too, I just hope to find the time to do them :D. For the rest, except the name change, this blog will have the same content as before and links to the old blog should continue to work through redirection. I want to thank all the people that spent time in reading my articles, and I hope you will keep following me.

As an ending note, good luck to my good old friend and co-worker Alkampfer, go visit his blog at the new domain www.codewrecks.com for some good pieces of code and information!

Alessandro “Guardian” Giorgetti

The Permalink problem continues

It seems that out current hosting provider (IxWebHosting) is not able to identify the cause of the problem and is not able to fix it...we cannot apply any of the standard redirection hacks usually used in an IIS6 hosting cause they say they aren’t able to provide a custom redirection service due to how they install and run the php module under IIS6.

The strange thing is that anything worked well since a couple of days ago...then something happened and no one is able to tell what...we haven’t modified our blogs configuration and the service provider claims nothing was changed on the server.

We are working on a solution and moving the blogs and websites to a virtual server under a different provider. we have also registered some new domains to give a new ‘look and feel’ at our blogs.

In the meanwhile we had to disable the permalink support to allow anyone interested to navigate inside our blogs, the sad drawback is that the search engines have indexed our links using the permalink format and those links will be unreachable for some time.

We apologize for the inconvenience.

Related Content


Troubles with Permalinks, blog unusable

Since yesterday’s night we have troubles with the permalinks we use on our blogs, we asked our current host to investigate the issues and we hope for a quick and fast solution; however the first feedbacks we had weren’t so good.

Meanwhile I’m sad but all the links on this blog will be broken and unusable, we are evaluating if it’s the case of change the hosting service at all.

Related Content


WSS / SharePoint: adding filtering capabilities to the CustomListViewWebPart - Filter Chain Fixed

I had a lot of good feedbacks on that SharePoint filtering articles series, the guys that wrote me spotted on a nasty bug on how I was building the chain of filters in CAML.

In my code I did something like: <or><eq>...</eq><eq>...</eq><eq>...</eq></or> which is WRONG!