<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Ben S. Stahlhood II's Blog</title><subtitle type="html">.NET Framework Discussions</subtitle><id>http://weblogs.asp.net/bstahlhood/atom.aspx</id><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/default.aspx" /><link rel="self" type="application/atom+xml" href="http://weblogs.asp.net/bstahlhood/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.20510.895">Community Server</generator><updated>2006-05-22T14:51:00Z</updated><entry><title>Creating native iPhone applications</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2008/01/04/creating-native-iphone-applications.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2008/01/04/creating-native-iphone-applications.aspx</id><published>2008-01-04T22:51:00Z</published><updated>2008-01-04T22:51:00Z</updated><content type="html">I just wanted to let you guys now that I just posted a guide over at &lt;a href="http://www.cocoamachine.com/" title="Cocoa Machine" target="_blank" mce_href="http://www.cocoamachine.com/"&gt;www.cocoamachine.com&lt;/a&gt; on how to do get setup for native iPhone development on your Mac using Leopard and XCode 3.0.  I have this blog and my Mac blog.  I try to keep them separate unless I feel the information is useful enough to post here too.  Some of the stuff I will be doing will be related to C#, Mono, and Mono on iPhone.  I had talked to Zac Bowling awhile back and he said Mono on the iPhone is a mess, but that he was hacking on it.  I will keep you posted once I have more info.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5548879" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author><category term="C#" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/C_2300_/default.aspx" /><category term="iphone" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/iphone/default.aspx" /></entry><entry><title>Okay Scott, you and your team rock.</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2007/12/21/okay-scott-you-and-your-team-rock.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2007/12/21/okay-scott-you-and-your-team-rock.aspx</id><published>2007-12-22T03:49:00Z</published><updated>2007-12-22T03:49:00Z</updated><content type="html">&lt;p&gt;It has been awhile since my last confession.&amp;nbsp; Having kids sucks the time right out of you.&amp;nbsp; Nothing puts it in perspective like having a couple.&amp;nbsp; You hear about it all the time, but until you have some, you have no clue!&amp;nbsp; I have been busy with my job and new family.&amp;nbsp; I am loving every minute of it.&amp;nbsp; My son, Benjamin Scott Stahlhood III, will be here in 23 days.&amp;nbsp; He will be the next hacker in the family.&amp;nbsp; His ultrasound picture had the number 013370 on it, that is just a sign of things to come ;)&lt;br&gt;&lt;br&gt;&lt;a href="http://weblogs.asp.net/scottgu/" target="_blank" mce_href="http://weblogs.asp.net/scottgu/"&gt;Scott Guthrie&lt;/a&gt; and company have been rocking lately man.&amp;nbsp; I have to tell you, I am super impressed with what has come out of that team recently.&amp;nbsp; I am sorrry.&amp;nbsp; I am sure I am setting my self up as flame bait here, but ASP.NET MVC framework is a Ruby on Rails killer.&amp;nbsp; It is awesome with a capital A baby.&amp;nbsp; It has plenty of time to get better too.&amp;nbsp; It is nice to see that Subsonic is making its way to ASP.NET.&amp;nbsp; I think it was a great move for Scott to contact &lt;a href="http://blog.wekeroad.com/2007/10/26/microsoft-subsonic-and-me/" target="_blank" mce_href="http://blog.wekeroad.com/2007/10/26/microsoft-subsonic-and-me/"&gt;Rob&lt;/a&gt;.&amp;nbsp; Rob is a great addition to the team.&lt;/p&gt;&lt;p&gt;I have had a lot of stressful things going on and that has sucked the extra time I used to devote to helping out the community and working on cool projects that others can use and from using can learn.&amp;nbsp; Things are looking pretty good and I hope to get back into helping the community out.&lt;/p&gt;&lt;p&gt;Scott, you and your team rock.&amp;nbsp; Keep up the great work.&amp;nbsp; Even thought it does not matter from a an average Joe like me, tell your team they rock too and I appreciate all the great stuff you guys are doing.&amp;nbsp; It is great to see killer tools being released for the developers.&amp;nbsp; I feel you guys are truly being innovative and delivering from a developer point of view.&lt;/p&gt;&lt;p&gt;Everyone be careful over the next week.&amp;nbsp; Have fun, but don't endanger others!&lt;br&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5485971" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author><category term=".NET" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET/default.aspx" /><category term="ASP.NET" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/ASP.NET/default.aspx" /><category term="family" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/family/default.aspx" /><category term="time" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/time/default.aspx" /><category term="scottgu" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/scottgu/default.aspx" /></entry><entry><title>XM Interface Cable, XM Protocol Spec Document, Hybrid Mobile</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2007/03/24/xm-interface-cable-xm-protocol-spec-document-hybrid-mobile.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2007/03/24/xm-interface-cable-xm-protocol-spec-document-hybrid-mobile.aspx</id><published>2007-03-25T00:04:00Z</published><updated>2007-03-25T00:04:00Z</updated><content type="html">&lt;p&gt;It has been awhile since I posted on my blog.&amp;nbsp; I have been super busy with getting Hybrid Mobile off the ground.&amp;nbsp; Hybrid Mobile is doing a lot of cool things, and a lot of these things I speak of will finally be usable by the public sometime in July.&amp;nbsp; Hybrid Mobile has a business plan with many phases, the first of which is the automotive market.&amp;nbsp; I am excited to be working on this stuff.&amp;nbsp; I hope everyone enjoys it as much as I have developing it.&lt;/p&gt;&lt;p&gt;We finally are selling our cables again.&amp;nbsp; You can get a XM Interface Cable that is RS232, which will plug right into an XM Commander or XM Direct, and allow you to have XM Radio on your computer.&amp;nbsp; You can purchase an XM Direct or Commander at Best Buy, Wal-Mart, or Circuit City.&amp;nbsp; You can get purchase them in many places, but I figured I would mention a few.&lt;/p&gt;&lt;p&gt;You can now get a Hybrid Mobile XM Interface Cable at our website: &lt;a href="http://www.hybrid-mobile.com/OurProducts.aspx" target="_blank"&gt;http://www.hybrid-mobile.com/OurProducts.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;You can also find the Hybrid Mobile XM Protocol Spec Documentation at our website: &lt;a href="http://www.hybrid-mobile.com/OurProducts_Downloads.aspx" target="_blank"&gt;http://www.hybrid-mobile.com/OurProducts_Downloads.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The XM Interface Cable Basic Home Edition is the one most people get to work on development.&amp;nbsp; You can message me through my blog, if you would like any help.&amp;nbsp; I will be releasing all my C# code for XM and Sirius as open source on our new open source page, which is coming soon.&amp;nbsp; I am working on updating the XM Protocol Spec document and I am creating a new one for Sirius Radio too.&amp;nbsp; All the code will be tested on Mono with Windows, Mac OS X, and various Linux platforms.&amp;nbsp; That way everyone gets some love ;)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;We have a lot of new products on the way, including some new ones for XM and Sirius Satellite Radio.&amp;nbsp; If you have any comments, questions, or suggestions, please let me know.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2090352" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author><category term="Mobile" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Mobile/default.aspx" /><category term="XM Protocol" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/XM+Protocol/default.aspx" /><category term="XM Stuff" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/XM+Stuff/default.aspx" /><category term="XM Cable" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/XM+Cable/default.aspx" /><category term="Hybrid Car" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Hybrid+Car/default.aspx" /><category term="Hybrid Automotive" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Hybrid+Automotive/default.aspx" /><category term="Hybrid XM" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Hybrid+XM/default.aspx" /></entry><entry><title>C# Telematics/Infotainment HTPC Pimp My Ride Take 3!</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2006/11/06/C_2300_-Telematics_2F00_Infotainment-HTPC-Pimp-My-Ride-Take-3_2100_.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2006/11/06/C_2300_-Telematics_2F00_Infotainment-HTPC-Pimp-My-Ride-Take-3_2100_.aspx</id><published>2006-11-06T19:07:00Z</published><updated>2006-11-06T19:07:00Z</updated><content type="html">&lt;p&gt;So my C#/.NET based software Mobile Media Center has now been used in 3 Pimp My Ride vehicles.&amp;nbsp; It was used in the ice cream truck this season, a Pontiac Solstice for GM based on a James Bond theme, and a Lincoln Navigator with motorized Wine Rack in the back :)&amp;nbsp; The Lincoln Navigator was at the SEMA show this past week in the Gaplin booth.&amp;nbsp; Mad Mike just called us and said he now wants MMC in his personal SUV :)&amp;nbsp; We are doing a totally unique skin and some custom stuff for him to show off.&amp;nbsp; We will be doing OBDII integration and CAN Bus / HVAC control for him, which is some of the new modules I have been working on... cool stuff.&amp;nbsp; A lot going on too that I can not talk about here... yet.&lt;/p&gt;&lt;p&gt;It is being designed to run on Mono, so MMC will eventually be a complete HTPC / Digital Lifestyle / Home Automation software that runs seamlessly on Windows, Mac OS X, and Linux flavors.&amp;nbsp;&amp;nbsp; I have been testing with Mac OS X in Kiosk mode on the new Apple Intel Mac Mini&amp;#39;s with a Xenarc touch screen and it&amp;#39;s&amp;nbsp; hot!&amp;nbsp; I will keep you guys posted.&amp;nbsp; I will need a lot of beta testers.&lt;/p&gt;&lt;p&gt;We are still looking for investors too ;) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Later! &lt;br /&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=854382" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author><category term=".NET Framework" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET+Framework/default.aspx" /><category term="Windows Forms" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Windows+Forms/default.aspx" /><category term="C#" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/C_2300_/default.aspx" /><category term=".NET" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET/default.aspx" /><category term="Mobile" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Mobile/default.aspx" /></entry><entry><title>C# Telematics/Infotainment HTPC Pimp My Ride SEMA Show</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2006/10/09/C_2300_-Telematics_2F00_Infotainment-HTPC-Pimp-My-Ride-SEMA-Show.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2006/10/09/C_2300_-Telematics_2F00_Infotainment-HTPC-Pimp-My-Ride-SEMA-Show.aspx</id><published>2006-10-09T14:02:00Z</published><updated>2006-10-09T14:02:00Z</updated><content type="html">&lt;p&gt;The framework I designed for telematics/htpc is being used in some more Pimp My Ride episodes and now it will be featured at the 2006 SEMA Show.&amp;nbsp; We just finished a Pontiac Solstice that had a James Bond theme going. It ran my framework with a touch screen computer that controlled machine guns, smoke screen, GPS, etc.&lt;/p&gt;&lt;p&gt;I did the Ice Cream truck shown off at the beginning of this season.&amp;nbsp; The Pontiac was just finished.&amp;nbsp; I am now working on a Lincoln Navigator that will be shown off at the SEMA Show GAS/Pimp My Ride booth.&amp;nbsp; If any of you happen to be out there check it out.&amp;nbsp; It was written in C#//NETFX 2.0. My company is &lt;a href="http://www.hybrid-mobile.com/" target="_blank" title="Hybrid Mobile Technologies"&gt;Hybrid Mobile Technologies&lt;/a&gt;.&amp;nbsp; I know, the site sucks.&amp;nbsp; I am working on getting a good web designed to redo it for me.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Cheers &lt;br /&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=639426" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author><category term=".NET Framework" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET+Framework/default.aspx" /><category term="Windows Forms" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Windows+Forms/default.aspx" /><category term="C#" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/C_2300_/default.aspx" /></entry><entry><title>ASP.NET Atlas DefaultButton bug?</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2006/09/08/ASP.NET-Atlas-DefaultButton-bug_3F00_.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2006/09/08/ASP.NET-Atlas-DefaultButton-bug_3F00_.aspx</id><published>2006-09-08T20:17:00Z</published><updated>2006-09-08T20:17:00Z</updated><content type="html">&lt;p&gt;A buddy of mine works for Virtual Bank.&amp;nbsp; They were working on an internal application that is based on ASP.NET/ATLAS.&amp;nbsp; They were setting the defaultbutton attribute at the form level to a button they had on the form and it was only firing the OnClick event the first time it ran.&lt;/p&gt;&lt;p&gt;He called me up and asked if I could help solve there issue.&amp;nbsp; I recreated the problem by creating a simple web application and dropping a button on it.&amp;nbsp; I set the defaultbutton attribute and ran the application so I could see what was going on behind the scenes.&lt;/p&gt;&lt;p&gt;The client code that was produced was the folloing:&lt;/p&gt;&lt;div style="font-size: 10pt; background: white; color: black; font-family: Courier New"&gt;&lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon"&gt;form&lt;/span&gt; &lt;span style="color: red"&gt;name&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;form1&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;method&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;post&amp;quot;&lt;/span&gt; &lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&lt;span style="color: red"&gt;action&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Default.aspx&amp;quot;&lt;/span&gt; &lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&lt;span style="color: red"&gt;onkeypress&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;return WebForm_FireDefaultButton(event, &amp;#39;Button1&amp;#39;)&amp;quot;&lt;/span&gt; &lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;form1&amp;quot;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I&amp;nbsp;noticed the call to the javascript function &lt;strong&gt;WebForm_FireDefaultButton&lt;/strong&gt;.&amp;nbsp; So I saved the website to the hard drive.&amp;nbsp; Two files are created in the subfolder with the same name of the page you saved.&amp;nbsp; Inside the folder you will find two files.&amp;nbsp; One of them will be named &amp;quot;&lt;strong&gt;WebResource.axd&lt;/strong&gt;&amp;quot;.&amp;nbsp; I opened this file and found the code to &lt;strong&gt;WebForm_FireDefaultButton.&amp;nbsp; &lt;/strong&gt;The code looks like the following:&lt;/p&gt;&lt;div style="font-size: 10pt; background: white; color: black; font-family: Courier New"&gt;&lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;var&lt;/span&gt; __defaultFired = &lt;span style="color: blue"&gt;false&lt;/span&gt;;&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;function&lt;/span&gt; WebForm_FireDefaultButton(&lt;span style="color: blue"&gt;event&lt;/span&gt;, target) {&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;if&lt;/span&gt; (!__defaultFired &amp;amp;&amp;amp; &lt;span style="color: blue"&gt;event&lt;/span&gt;.keyCode == 13 &amp;amp;&amp;amp; &lt;/pre&gt;&lt;pre style="margin: 0px"&gt;!(&lt;span style="color: blue"&gt;event&lt;/span&gt;.srcElement &amp;amp;&amp;amp; (&lt;span style="color: blue"&gt;event&lt;/span&gt;.srcElement.tagName.toLowerCase() == &lt;span style="color: maroon"&gt;&amp;quot;textarea&amp;quot;&lt;/span&gt;))) {&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;var&lt;/span&gt; defaultButton;&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;if&lt;/span&gt; (__nonMSDOMBrowser) {&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; defaultButton = document.getElementById(target);&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;else&lt;/span&gt; {&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; defaultButton = document.all[target];&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;if&lt;/span&gt; (defaultButton &amp;amp;&amp;amp; &lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;typeof&lt;/span&gt;(defaultButton.click) != &lt;span style="color: maroon"&gt;&amp;quot;undefined&amp;quot;&lt;/span&gt;) {&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; __defaultFired = &lt;span style="color: blue"&gt;true&lt;/span&gt;;&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; defaultButton.click();&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;event&lt;/span&gt;.cancelBubble = &lt;span style="color: blue"&gt;true&lt;/span&gt;;&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;if&lt;/span&gt; (&lt;span style="color: blue"&gt;event&lt;/span&gt;.stopPropagation) &lt;span style="color: blue"&gt;event&lt;/span&gt;.stopPropagation();&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: blue"&gt;false&lt;/span&gt;;&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: blue"&gt;true&lt;/span&gt;;&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;}&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You will notice that &lt;strong&gt;__defaultFired&lt;/strong&gt; is being set to true when the function is fired. So here is the kicker. With ATLAS it only updates sections of the code.&lt;br /&gt;In the old postback model this works fine because everything is reset. In ATLAS this variable is not being reset because of the intelligent updates. So we have to create a work around. This is what I suggested and it seemed to work great. I told my friend to create a client side JavaScript function called ResetDefault and reset the &lt;strong&gt;__defaultFired&lt;/strong&gt; variable to false manually. Then call that by adding it to the button using the OnClientClick attribute. So the two parts look like this:&lt;/p&gt;&lt;span style="color: blue"&gt;&lt;div style="font-size: 10pt; background: white; color: black; font-family: Courier New"&gt;&lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon"&gt;script&lt;/span&gt; &lt;span style="color: red"&gt;type&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue"&gt;function&lt;/span&gt; ResetDefault()&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; __defaultFired = &lt;span style="color: blue"&gt;false&lt;/span&gt;;&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: maroon"&gt;script&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: maroon"&gt;Button&lt;/span&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Button1&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: red"&gt;Text&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;Button&amp;quot;&lt;/span&gt; &lt;/pre&gt;&lt;pre style="margin: 0px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: red"&gt;OnClientClick&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;ResetDefault&amp;quot;&lt;/span&gt; &lt;span style="color: blue"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;!--EndFragment--&gt;&lt;/span&gt;&lt;!--EndFragment--&gt;&lt;p&gt;This works everytime you hit the enter key on the page now.&amp;nbsp; I just figured I would share this in case somone else runs into the same issue.&amp;nbsp; If there is a better way, please let me know.&amp;nbsp; This seems to be a bug?&amp;nbsp; There might be a proper way to do default buttons with ATLAS and I am just not aware of it yet due to my lack of experience using it.&lt;/p&gt;&lt;p&gt;Take care&lt;br /&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=530145" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author><category term=".NET Framework" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET+Framework/default.aspx" /><category term="C#" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/C_2300_/default.aspx" /><category term=".NET" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET/default.aspx" /><category term="Atlas" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Atlas/default.aspx" /><category term="ASP.NET" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/ASP.NET/default.aspx" /></entry><entry><title>Mac OS X Leopard, Windows Vista, Flamewars... Oh My!</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2006/08/09/Mac-OS-X-Leopard_2C00_-Windows-Vista_2C00_-Flamewars_2E002E002E00_-Oh-My_2100_.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2006/08/09/Mac-OS-X-Leopard_2C00_-Windows-Vista_2C00_-Flamewars_2E002E002E00_-Oh-My_2100_.aspx</id><published>2006-08-10T02:13:00Z</published><updated>2006-08-10T02:13:00Z</updated><content type="html">&lt;div&gt;I have to say that the last few days have been interesting to say the least.&amp;nbsp; I have been reading all the diarrhea of the mouth that has been spewing back and forth between Mac&amp;#39;s and PC&amp;#39;s ;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This post is in response to many post I have been reading.&amp;nbsp; I happen to pick 3 out of the bunch, but there are more where these came from, trust me.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;http://www.internet-nexus.com/2006/08/leopards-ten-new-features-dissected.htm&lt;/div&gt;&lt;div&gt;http://www.theregister.co.uk/2006/08/08/mac_os_x_leopard_preview/&lt;/div&gt;&lt;div&gt;http://www.wired.com/news/columns/cultofmac/0,71557-0.html&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I have to say that it all comes down to ignorance.&amp;nbsp; I have been part of the Windows world ever since I can remember and been doing development on Windows since I was 17.&amp;nbsp; I have always had my likes and dislikes about Windows.&amp;nbsp; I think everyone does.&amp;nbsp; I started using a Mac when they released Mac OS X version 10.0.&amp;nbsp; I am a technology freak.&amp;nbsp; I love reading about new OS releases.&amp;nbsp; I remember reading about NeXT and their technologies.&amp;nbsp; I knew that what was being released was part of what came out of the Apple purchase of NeXT.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Once I started using Mac OS X, I started getting familiar with that user base.&amp;nbsp; Their big expo shows, the keynote speech, and all the hype.&amp;nbsp; It was like waiting for your birthday or Christmas.&amp;nbsp; I remember saying to my self I have become one of these fanatics.&amp;nbsp; So knowing what I do about their shows.&amp;nbsp; The WWDC is held every year for the developers that support the Mac OS X platform.&amp;nbsp; Everything presented and announced at these shows are for the benefit of the developer.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So I wanted to touch on the things that Steve Jobs announced and throw in my .02.&amp;nbsp; First of all, Steve and company did not keep using the term of innovation for everything they were showing off.&amp;nbsp; Innovation is creating something new, even if that means utilizing something that already exist and making it better or easier to use.&amp;nbsp; The iPod is innovative.&amp;nbsp; It the whole idea something new?&amp;nbsp; No it is not.&amp;nbsp; There were MP3 players out before the iPod.&amp;nbsp; The iPod just was an innovative way to store and play your music.&amp;nbsp; The way you interacted with it and retrieved your music was a major part of what was innovative with the iPod.&amp;nbsp; With that said, I will continue on with my comments.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In general, when Steve and company say something is new in this keynote, they really mean it&amp;#39;s new for the Mac community.&amp;nbsp; So the new Mail features are new to Mac users.&amp;nbsp; They were not claiming that it was some new thing that no one else has in there Mail application.&amp;nbsp; This conference was for Mac developers.&amp;nbsp; This was not a consumer show.&amp;nbsp; Everything was relative to Mac OS X, the development of Mac OS X, and the developers of Mac OS X.&amp;nbsp; The fact that he had others come out and help... maybe, just maybe, he is allowing the people that had a huge hand in developing these technologies present them so they feel like they have a part.&amp;nbsp; It&amp;#39;s called being a team.&amp;nbsp; Maybe you never heard of that?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Time Machine; This is based on a technology that is seen in many other places.&amp;nbsp; One of the places mentioned a lot was Windows Server 2003.&amp;nbsp; This is all true.&amp;nbsp; So what is innovative about this?&amp;nbsp; The interface.&amp;nbsp; The way that they made it easy enough to use and understand so that the average consumer can use it.&amp;nbsp; My mother could use Time Machine.&amp;nbsp; My mother could not use the Restore Point system and Previous Versions that Windows Server 2003 contains.&amp;nbsp; It has an SDK that developers can use so that their applications can utilize the same functionality.&amp;nbsp; That is the difference.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Spaces;&amp;nbsp; Yes it is virtual desktops for Mac OS X.&amp;nbsp; Yeah we all know that KDE, GNOME, et al have had Virtual desktops since before the man was here.&amp;nbsp; Once again it is new to Mac OS X and has a very easy and clean interface.&amp;nbsp; The thing I liked was the monitor panel like view, where you see all 4 desktops at once and interact with them while there zoomed out.&amp;nbsp; This is just a start of something they can expand on.&amp;nbsp; I think it is a great addition... FOR MAC OS X.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;CoreAnimation; This is strictly for developers.&amp;nbsp; All the Core &amp;quot;pillars&amp;quot; that Apple has provided are for developers so they can provide great technologies to the developers.&amp;nbsp; Once again this is new for developers.&amp;nbsp; Animation is not something Apple invented and they are not claiming that!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Universal Access; I think you would have to be a drooling invalid to not see this is way better then Windows Vista and not innovative.&amp;nbsp; That voice is one of the best I have heard in text to speech systems.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Mail; The features were new to Mac OS X users.&amp;nbsp; The other features like notes and to-do&amp;#39;s are just the start of a system wide set of services that will allow collaboration across the board for applications.&amp;nbsp; They will release an SDK to developers that will allow them to add the same services in there applications and share data.&amp;nbsp; The other features are similar to other Mail applications, but much easier to use.&amp;nbsp; That seems to be a constant theme... easier to use.&amp;nbsp; Hmm, interesting.&amp;nbsp; That is all I got to say about that *Forest Gump*.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;iChat; Once more, these are all new features for Mac OS X users and developers.&amp;nbsp; I figure if I keep repeating my self, they will get the point eventually.&amp;nbsp; I do have to say that the collaboration features are great additions and much cleaner then most IM apps I have used.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Mac OS X Leopard is still in development.&amp;nbsp; There will be many more features.&amp;nbsp; Steve even mentioned some top secret features that were not going to be shown at this time.&amp;nbsp; These features are most likely something that is geared toward the users and will be big when they are announced.&amp;nbsp; I just have to say I still use Windows everyday.&amp;nbsp; I am a .NET Developer.&amp;nbsp; I think .NET and C# is probably the best things Microsoft has released in a long time.&amp;nbsp; I am very disappointed in Vista.&amp;nbsp; Vista has been in development for 5 years and we still do not have a product close to production release.&amp;nbsp; Mac OS X has had 6 major updates since 2001.&amp;nbsp; Leopard will be a big release too when it is complete.&amp;nbsp; I can honestly say that using my MacBook Pro has restored my faith in computers.&amp;nbsp; It is really refreshing to use a system that I do not have to reformat my hard drive and reinstall the operating system on a regular basis.&amp;nbsp; I do not have to worry about all the viruses and spy ware.&amp;nbsp; I can just get up in the morning and work.&amp;nbsp; I even do .NET and C# using Mono on Mac OS X.&amp;nbsp; So I am still using the technologies I use every day in the Windows world on my Mac.&amp;nbsp; I still have a Windows PC at home, but my girlfriend uses that since I am on my Mac almost 100% of the time now.&amp;nbsp; She is always complaining about pop ups and search bars being installed that she never authorized.&amp;nbsp; I just smile and let out a sigh of relief.&amp;nbsp; I don&amp;#39;t have to worry about those things.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Take care until next time ;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ben&lt;/div&gt;&lt;div&gt;first initial + lastname at g to the mail dot com&lt;/div&gt;&lt;div&gt;first initial + lastname at mac dot com&lt;/div&gt;&lt;div&gt;http://www.myspace.com/sanityisfordeath&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=466434" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author><category term="Longhorn" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Longhorn/default.aspx" /><category term=".NET Framework" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET+Framework/default.aspx" /><category term="Windows Forms" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Windows+Forms/default.aspx" /><category term="C#" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/C_2300_/default.aspx" /><category term=".NET" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET/default.aspx" /><category term="Mobile" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Mobile/default.aspx" /></entry><entry><title>C# .NET Framework 2.0 Telematics featured on Pimp My Ride - Take 2</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2006/07/31/C_2300_-.NET-Framework-2.0-Telematics-featured-on-Pimp-My-Ride-_2D00_-Take-2.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2006/07/31/C_2300_-.NET-Framework-2.0-Telematics-featured-on-Pimp-My-Ride-_2D00_-Take-2.aspx</id><published>2006-07-31T23:36:00Z</published><updated>2006-07-31T23:36:00Z</updated><content type="html">&lt;p&gt;So I told you guys a couple weeks ago about the Ice Cream Truck episode of Pimp My Ride.&amp;nbsp; It went over pretty good.&amp;nbsp; All the touch screen software solutions, including the POS, and the cash drawer was all me.&amp;nbsp; It came out nice.&amp;nbsp; It was written in C# using Direct X for graphics and video stuff.&amp;nbsp; It is all based off a product I created called Mobile Media Center.&amp;nbsp; It is an application for people who want to a media center for there car or house that is quick and to the point.&amp;nbsp; It started out as a project on mp3car.com.&amp;nbsp; It has since been featured in a DUB car and on the Pimp My Ride show.&lt;/p&gt;&lt;p&gt;So what happens from here?&amp;nbsp; It will be on another episode of Pimp My Ride.&amp;nbsp; This time a spy theme care with machine guns, etc.&amp;nbsp; The touch screen software will control GPS and all relay controlled devices.&amp;nbsp; It will be using the Mobile Media Center core again.&amp;nbsp; The company is called Hybrid Mobile Technologies (&lt;a href="http://www.hybrid-mobile.com/" target="_blank"&gt;http://www.hybrid-mobile.com/)&lt;/a&gt;&amp;nbsp; We have a lot in the pipe for a full platform and framework.&amp;nbsp; We have a nice business plan that we completed recently too.&amp;nbsp; We need investors to take this to the next level.&amp;nbsp; If you are an investor or know of any investors please contact me: bstahlhood [[AT]] gmail [[DOT]] com for questions or further details.&lt;/p&gt;&lt;p&gt;You can also check out myspace at &lt;a href="http://www.myspace.com/sanityisfordeath" target="_blank"&gt;http://www.myspace.com/sanityisfordeath&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=461784" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author><category term=".NET Framework" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET+Framework/default.aspx" /><category term="Windows Forms" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Windows+Forms/default.aspx" /><category term="C#" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/C_2300_/default.aspx" /><category term=".NET" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET/default.aspx" /><category term="Mobile" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Mobile/default.aspx" /></entry><entry><title>C# Telematics on Pimp My Ride</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2006/07/05/C_2300_-Telematics-on-Pimp-My-Ride.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2006/07/05/C_2300_-Telematics-on-Pimp-My-Ride.aspx</id><published>2006-07-06T01:28:00Z</published><updated>2006-07-06T01:28:00Z</updated><content type="html">Just wanted to let everyone know that the telematics framework I architected and implemented for Hybrid Mobile Technologies will have a piece of it being shown off on Pimp My Ride tomorrow night at 10PM EST.&amp;nbsp; Mad Mike and I worked together to pimp out an ice cream truck with a touch screen system that allows kids to do there ordering on the outside of the truck.&amp;nbsp; It uses the framework and foundation of the Mobile Media Center system I did for Hybrid Mobile Technologies.&amp;nbsp; http://www.hybrid-mobile.com/.&amp;nbsp; It was written in C# with all kinds of interop code with DirectShow and a butt load of other technologies.&lt;br&gt;&lt;br&gt;My myspace account is &lt;a href="http://www.myspace.com/sanityisfordeath"&gt;http://www.myspace.com/sanityisfordeath&lt;/a&gt; if anyone would like to add me as friends for networking and development discussions.&lt;br&gt;&lt;br&gt;ttyl&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=455654" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author><category term=".NET Framework" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET+Framework/default.aspx" /><category term="Windows Forms" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Windows+Forms/default.aspx" /><category term="C#" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/C_2300_/default.aspx" /><category term=".NET" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/.NET/default.aspx" /><category term="Mobile" scheme="http://weblogs.asp.net/bstahlhood/archive/tags/Mobile/default.aspx" /></entry><entry><title>Monodevlop on Mac OS X</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/bstahlhood/archive/2006/05/22/Monodevlop-on-Mac-OS-X.aspx" /><id>http://weblogs.asp.net/bstahlhood/archive/2006/05/22/Monodevlop-on-Mac-OS-X.aspx</id><published>2006-05-22T18:51:00Z</published><updated>2006-05-22T18:51:00Z</updated><content type="html">I returned my MacBook and I am going to the Apple store this evening to get a MacBook Pro.&amp;nbsp; I decided if I am going to spend the money, do it right ;)&amp;nbsp; I will be starting on the Mac OS X Package tonight.&amp;nbsp; I know many others have ran into problems, but I am going to try my best to make this installation as easy as possible for those that want to use Monodevelop on Mac OS X.&amp;nbsp; I know I do!&lt;br&gt;&lt;br&gt;I now have my cable modem installed and my office at home is all set.&amp;nbsp; I am ready to catch up with everything.&amp;nbsp; I also want to get an update of the XM Protocol specification out as well.&amp;nbsp; I also plan on releasing some Cocoa apps that I have been wanting to work on for some time now.&amp;nbsp; I am stoked to have a Mac again!&amp;nbsp; I love developing on a Mac, even when I have to develop software for Windows, I like using my Mac.&amp;nbsp; It just seems so enjoyable for some reason.&amp;nbsp; I know I know...&amp;nbsp; I sound like a Mac addict now, what can I say, I am a switcher ;)&lt;br&gt;&lt;br&gt;Stay tuned&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=448415" width="1" height="1"&gt;</content><author><name>bstahlhood</name><uri>http://weblogs.asp.net/members/bstahlhood.aspx</uri></author></entry></feed>