How To Use A RequiredFieldValidator With A DropDownList

I love the ASP.NET validation controls. There are times however when you need to know the ins-and-outs to use them successfully. For example, what do you do when you want to require an option to be selected from a DropDownList on the client side? If you simply add a RequiredFieldValidator, set the right ValidationGroup and …

Continue reading

How To Get Connection Strings From web.config

In c# it’s quite easy to get a connection string from web.config at run-time without having to manually parse the xml with the aid of the System.Configuration library. First you need a reference to the System.Configuration library – you add the reference via the “Add Reference” feature of your project and you then include the …

Continue reading

Table Indexes Hidden in PHPMyAdmin

I was doing some mysql work for a WordPress database which required me to use the dbDelta function (more on that in another post) a number of times and after a while I found that the constant recreation of UNIQUE KEY indexes caused my db to run out of index resources, throwing me the following …

Continue reading

Error 1001 : The specified service has been marked for deletion

When you uninstall and then subsequently attempt to re-install a windows service you might run into this annoying error which will prevent you from completing the re-installation process: Error 1001 : The specified service has been marked for deletion In the past, a simple restart of your machine would have solved the problem, however Jóhannes …

Continue reading

Johnny Cash – HURT

Music helps me unwind. I am sure a lot of you feel the same. I love this cover by the great Johnny Cash of the song Hurt (original song is by Nince Inch Nails). RIP Johnny and thanks for the beautiful music.

Continue reading

How To Rename A File To .htaccess In Windows

If you are looking to rename a file like htaccess.txt to .htaccess and you are stumped because when you attempt to right click and “rename” you get a “You must type a file name” error, below is what you can do. Go to Start -> Run -> cmd. Once inside command prompt navigate to the …

Continue reading

Host Multiple Websites On Localhost For Testing Purposes

I run a LAMP (Linux/Apache/Mysql/Php) setup on my local machine where I do all development and testing before updating production websites. This enables a smooth transition of code changes from test version to production grade with minimum interruption to production websites. In order to achieve this local machine test environment, I have configured local versions …

Continue reading

Load Error Message Using Google’s Recaptcha With Ajax API

I recently began using Google’s reCaptcha plugin on a client’s site to reduce spam submissions on one of their forms – something the plugin does wonderfully. What is captcha? From the google.com/recaptcha website: A CAPTCHA is a program that can tell whether its user is a human or a computer. You’ve probably seen them — …

Continue reading

Fixing FTP Connection Error on Localhost WordPress

If you have configured a LAMP or WAMP setup on your local machine and you have installed WordPress for testing purposes, you might be surprised to be asked for your ftp connection details when you attempt to run the automated update feature of a theme, plugin or WordPress itself. This usually happens if you haven’t …

Continue reading

Visual Studio 2010 WebServer Slow Loading

I do a lot of contracted work in ASP.NET (C#). In fact, you could say a major part of my working day is spent on debugging or developing features for a client in ASP.NET 4 (C#). I was recently faced with a really strange problem. I was experiencing extremely slow loading times when attempting to …

Continue reading