Lee Kelleher

Archive for posts dated 'June 2008'

  1. June 2008

    1. Making Request.QueryString writable (by clone/copy)

      Posted on . Estimated read time: under a minute (102 words)

      Every now and then I completely forget that the Request.QueryString (and Request.Form) object is read-only. Today I had a bit of functionality where I needed to remove a key/value from the collection - but the Remove() method (of the NameValueCollection object) throws an exception. Unfortunately, the Request.QueryString's CopyTo method assigns the values to an ARRAY, not a NameValueCollection - losing functionality and flexibility. You need to copy the Request.QueryString object to a new NameValueCollection instance,…

      Tags: , , , ,

    2. How to convert NameValueCollection to a (Query) String

      Posted on . Estimated read time: under a minute (132 words)

      Most ASP.NET developers know that you can get a key/value pair string from the Request.QueryString object (via the .ToString() method). However that functionality isn't the same for a generic NameValueCollection object (of which Request.QueryString is derived from). So how do you take a NameValueCollection object and get a nicely formatted key/value pair string? (i.e. "key1=value1&key2=value2") ... Here's a method I wrote a while ago: /// <summary> /// Constructs a QueryString (string). /// Consider this method…

      Tags: , , , ,

    3. How to best embed a WMV video clip?

      Posted on . Estimated read time: under a minute (227 words)

      I hate to admit it, but I’m stuck… I’m trying to figure out how to best embed a WMV video clip in a web-page, so that it works cross-browser (and cross-platform). Even after all my years of web-development, I’m still confused to which browser supports which tag … nested <embed> tags in <object> tags … it gets messy! I’m as equally confused with the Class ID attribute: “CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6” – surely that can’t be the same…

      Tags: , , , , , ,

    4. Firefox 3 – Download Day

      Posted on . Estimated read time: under a minute (153 words)

      Today is Firefox 3 Download Day! Mozilla are hoping to set a Guinness World Record for most software downloads in 24 hours. At the time of writing, over 1.2 million people have pledged to download Firefox 3 on the Download Day! This is a first attempt of this record, so there is no number to beat. But Mozilla want to outdo the number of Firefox 2 downloads on its launch day, which was 1.6 million!…

      Tags: , , ,

Year archive

  1. 2020
    1. January
  2. 2019
    1. January
    2. February
    3. April
    4. August
  3. 2018
    1. January
    2. August
    3. November
    4. December
  4. 2016
    1. March
    2. May
    3. June
    4. July
    5. August
    6. September
    7. October
  5. 2014
    1. March
    2. May
    3. November
  6. 2013
    1. September
    2. October
    3. November
    4. December
  7. 2012
    1. February
  8. 2011
    1. January
    2. June
    3. July
    4. September
    5. October
  9. 2010
    1. January
    2. April
    3. May
    4. August
  10. 2009
    1. January
    2. February
    3. April
    4. June
    5. July
    6. September
    7. October
    8. November
  11. 2008
    1. January
    2. February
    3. March
    4. April
    5. May
    6. June
    7. July
    8. August
    9. November
    10. December
  12. 2007
    1. January
    2. February
    3. March
    4. April
    5. May
    6. June
    7. November
    8. December
  13. 2006
    1. March
    2. April
    3. June
    4. October
    5. November
    6. December

Tag archive

View a weighted tag cloud and a listing of all tags.