Tuesday, May 08, 2007

Over the weekend, Moby and Aaron both hit big milestones:

 

Moby is now 15 years old. Doing great. He still gets himself up on our bed every morning. Nemo is also doing well and is 14.)

 

Aaron is now 9 months old and crawling and has also figured out how to get himself into our bed every morning but requires a bit of help.

kick it on DotNetKicks.com   Tuesday, May 08, 2007 7:21:21 AM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 
 Saturday, April 28, 2007

I came across this (in an asp.net page) last week:

protected void Page_Load(object sender, EventArgs e) {

    System.Windows.Forms.MessageBoxButtons buttons = System.Windows.Forms.MessageBoxButtons.YesNo;

    System.Windows.Forms.DialogResult result;

 

    result = System.Windows.Forms.MessageBox.Show("Test Message", "Test Caption", buttons);

}

 

kick it on DotNetKicks.com   Saturday, April 28, 2007 5:32:48 AM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [2]  | 
 Friday, April 27, 2007

I can't tell you how many times I have struggled with where to store a data item in a Check Box control. I typically need to do this when dynamically generating a series of check boxes on a page that correspond to a data item. I have used the tool tip which works ok but exposes your data to the use when the hover over the control. I have seen others manipulate part of the control ID to contain a data item but this seems problematic. Then it came to me:

using System;

 

namespace Utility {

 

    public class CheckBox: System.Web.UI.WebControls.CheckBox {

 

        public CheckBox() { }

 

        public object Data {

            get { return ViewState["Data"]; }

            set { ViewState["Data"] = value; }

        }

    }

}

Download a sample solution.

kick it on DotNetKicks.com   Friday, April 27, 2007 8:59:45 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 

I am guessing that like most other blogs, people come across my piece of cyber space through a search engine. Just validating this theory.

Also thinking that I will try to post more frequently now that I have a really unique name!

 

-Andy

kick it on DotNetKicks.com   Friday, April 27, 2007 1:07:46 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [2]  | 
 Monday, February 05, 2007
http://www.netgear.com/Products/CommunicationsVoIP/Skype/SPH200D.aspx

I bought a Netgear / Skype phone and just love it. The real test will be if Jennifer is willing to use it over the long term. She tried it a couple of times over the weekend and I am guessing that it will all work out. $15 for the Skype plan and $150 or so for the phone.

I looked at a few of the Linksys phones but it just seemed silly to me that I needed to be logged on to my computer and running Skype to use the phone. That requirement was only slightly better than just using my headset and microphone. The Linksys 802.11 phone was an option but I didn't want a cell phone sized phone. That would have certainly caused it to fail the Jennifer test.

I also like that the Netgear phone uses standard AAA NiMh batteries. The sounds quality seems good. No noticlable echo or delay, only a bit of background static.

-A

kick it on DotNetKicks.com   Monday, February 05, 2007 1:35:15 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [2]  | 
 Thursday, January 25, 2007
int? i;
object o;

// this is ok:
if (i.HasValue)
    o = i;
else
    o = DBNull.Value;

// This fails to compile. Error 1 Type of conditional expression cannot be determined
// because there is no implicit conversion between 'int?' and 'System.DBNull'
o = i.HasValue ? i : DBNull.Value;

// these also fail for the same reason
o = i == null ? DBNull.Value : i;
o = i.HasValue ? i : "ABC";

// but these works:
o = i.HasValue ? (object)i : DBNull.Value;
o = i.HasValue ? (object)i : (object)DBNull.Value;
o = i.HasValue ? i : (object)DBNull.Value;
kick it on DotNetKicks.com   Thursday, January 25, 2007 11:01:10 AM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [1]  | 
 Monday, January 22, 2007
I am getting very excited about LINQ! I love diving into new technologies and feel that LINQ is going to be a big one for .NET and a big one for me.

For a while, I thought that AJAX would play a big role in my bag of tricks but I never made the leap. This doesn't mean that AJAX won't be used in my applications but I just don't see myself becoming a strong resource on AJAX.

As for LINQ, I exchanged a comment or two with Scott Guthrie and while I am reading a lot into it, it looks like Orcas will RTM this year and I am guessing that we will see some stable betas soon and go lives mid year. I am currently playing around with the Jan 07 CTP.

-A

kick it on DotNetKicks.com   Monday, January 22, 2007 8:57:54 AM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [2]  | 
 Thursday, January 11, 2007
Aaron is getting a lot of mileage out of this one:

kick it on DotNetKicks.com   Thursday, January 11, 2007 3:49:55 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [2]  | 
 Thursday, December 07, 2006
Aaron had his first ear infection. Not a big deal but we were really glad that we took him in for a quick doctors visit last week. Initially, we were pretty sure he didn't feel well and Jennifer had been sick for a few days but we never suspected an ear infection. I love that Madrona has hours until 9:00 pm!

We got a weight on Aaron. We were guessing abouth 20 lbs but he officially hit the 18 lb mark at 16.5 weeks. The doctor thought he should make it to about 28-30 lbs at one year. Good thing we bought the "on the large size" (Britax Marathon) car seat. I think that Britax makes some rally nice stuff. Aaron has out grown his "zero to one year" convertable seat at 4 months. I traded the Subaru for a Highlander and am now thinking the Audi is on the chopping block. (Jennifer loves the Audi and doesn't really want to think about it. Reality will set in at some point.)

kick it on DotNetKicks.com   Thursday, December 07, 2006 11:01:57 AM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [2]  |