mha.dk

Random thoughts of wisdom - the personal blog of Michael Holm Andersen

10 best firefox extensions for Web development

If you - like me - from time to time relocates a website from one server to another, you'll probably like to see which IP actually is requested. One of my students showed me ShowIP which shows the IP address in the statusbar.

I then started to look around for other nice web development AddOn's .. and came across a page which lists 10 great extensions for web development.

MouseOver colour in GridView control

Ever wanted to have a different colour for the 'active' row in the GridView?

All you have to do is place the code below in the grids RowDataBound event. The code below asume we're using 'AlternatingRowStyle' to make the BackColor different for even/odd rows.

if (e.Row.RowType == DataControlRowType.DataRow)
   {
      
if (e.Row.RowIndex % 2 == 0)
      {
         e.Row.Attributes.Add(
"onmouseover", "this.style.backgroundColor='#D8D8D8'");
         e.Row.Attributes.Add(
"onmouseout", "this.style.backgroundColor='#FFFFFF'");
      } 
else
     
{
         e.Row.Attributes.Add(
"onmouseover", "this.style.backgroundColor='#D8D8D8'");
         e.Row.Attributes.Add(
"onmouseout", "this.style.backgroundColor='#F7F6F3'");
      }
}

Hide your E-mail from spambots!

Spambots crawl over websites looking for email addresses, when they find one they add it to their database for junk email. To make sure your e-mail is not found, use this little utility: http://www.mways.co.uk/prog/hidemail.php