<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:blogChannel="http://backend.userland.com/blogChannelModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Redwerb</title>
    <description>Tools, tips, and techniques for developers</description>
    <link>http://redwerb.com/</link>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>BlogEngine.NET 1.4.5.0</generator>
    <language>en-US</language>
    <blogChannel:blogRoll>http://redwerb.com/opml.axd</blogChannel:blogRoll>
    <blogChannel:blink>http://www.dotnetblogengine.net/syndication.axd</blogChannel:blink>
    <dc:creator>Brian Brewder</dc:creator>
    <dc:title>Redwerb</dc:title>
    <geo:lat>48.203856</geo:lat><geo:long>-122.052887</geo:long><image><link>http://www.redwerb.com</link><url>http://www.redwerb.com/sitefiles/1000/logo.png</url><title>Redwerb</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Redwerb" type="application/rss+xml" /><item>
      <title>Redwerb Visualizers is now on CodePlex</title>
      <description>&lt;p&gt;I just moved the Redwerb Visualizers project to CodePlex. If you want to download the visualizers, please head over there (&lt;a href="http://visualizer.codeplex.com/"&gt;Redwerb Visualizers on CodePlex&lt;/a&gt;). If you want to report any problems with the visualizer, please use the Issue Tracker on CodePlex. &lt;/p&gt;  &lt;p&gt;This is my first CodePlex project. I was pretty happy that I could use my subversion client to access the source code. I purchased a license for &lt;a href="http://www.visualsvn.com/"&gt;VisualSVN&lt;/a&gt; (a Subversion client for Visual Studio) a while ago and really like it. &lt;/p&gt;  &lt;p&gt;Another nice thing about CodePlex is that you can view the code without having to download it. You can even view the history of the code as well as differences between versions. It may not be as good as &lt;a href="http://www.scootersoftware.com/"&gt;Beyond Compare&lt;/a&gt;, but it certainly is convenient.&lt;/p&gt;  &lt;p&gt;I chose the Microsoft Public License (Ms-PL). This seems to be a simple, straight-forward, permissive license to allow people to use the code any way they want without having to worry about copyright infringement.&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=Bl4XRZia-bs:pdjfjqq-ZJg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=Bl4XRZia-bs:pdjfjqq-ZJg:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=Bl4XRZia-bs:pdjfjqq-ZJg:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/Bl4XRZia-bs" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/Bl4XRZia-bs/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/Redwerb-Visualizers-is-now-on-CodePlex.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=b74f44d1-0df4-4f0d-a4b1-b85c3c0fbdbb</guid>
      <pubDate>Sat, 06 Jun 2009 17:38:42 -0700</pubDate>
      <category>Tools</category>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=b74f44d1-0df4-4f0d-a4b1-b85c3c0fbdbb</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=b74f44d1-0df4-4f0d-a4b1-b85c3c0fbdbb</trackback:ping>
      <wfw:comment>http://redwerb.com/post/Redwerb-Visualizers-is-now-on-CodePlex.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=b74f44d1-0df4-4f0d-a4b1-b85c3c0fbdbb</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=b74f44d1-0df4-4f0d-a4b1-b85c3c0fbdbb</feedburner:origLink></item>
    <item>
      <title>Image Visualizer Update</title>
      <description>&lt;p&gt;I’ve updated the Redwerb Image Visualizer. The Image Visualizer is a Visual Studio visualizer. Visualizers allow developers to view an object in the debugger. Visual Studio comes with a couple of visualizers, but unfortunately, an image visualizer is not one of them. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://redwerb.com/image.axd?picture=WindowsLiveWriter/ImageVisualizerUpdate_11C85/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://redwerb.com/image.axd?picture=WindowsLiveWriter/ImageVisualizerUpdate_11C85/image_thumb.png" width="244" height="191" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The Redwerb Image Visualizer includes the following features (new features are in &lt;strong&gt;bold&lt;/strong&gt;):&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Move the image by dragging with the mouse&lt;/strong&gt; (no more scrollbars)&lt;/li&gt;    &lt;li&gt;Zoom the image from 10% to 300% (&lt;strong&gt;slider is now continuous with several convenient stop points&lt;/strong&gt;) &lt;/li&gt;    &lt;li&gt;Change the background of the frame from light to dark &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;View a border around the image&lt;/strong&gt; (useful if the background is transparent) &lt;/li&gt;    &lt;li&gt;Includes the following information about the image      &lt;ul&gt;       &lt;li&gt;Height &lt;/li&gt;        &lt;li&gt;Width &lt;/li&gt;        &lt;li&gt;Image type &lt;/li&gt;        &lt;li&gt;Horizontal resolution &lt;/li&gt;        &lt;li&gt;Vertical resolution &lt;/li&gt;        &lt;li&gt;Size in memory (an approximation) &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;Quick access to features via keyboard shortcuts (&lt;strong&gt;lots of new shortcuts, plus a nicer shortcut dialog&lt;/strong&gt;) &lt;/li&gt; &lt;/ul&gt;  &lt;h5&gt;&lt;a href="http://www.redwerb.com/page/Downloads.aspx"&gt;&lt;strong&gt;[Download]&lt;/strong&gt;&lt;/a&gt;&lt;/h5&gt;  &lt;p&gt;The source code is also available. &lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=jIyKct7Hj0E:2uWzmat2414:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=jIyKct7Hj0E:2uWzmat2414:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=jIyKct7Hj0E:2uWzmat2414:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/jIyKct7Hj0E" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/jIyKct7Hj0E/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/Image-Visualizer-Update.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=7d11914b-10b6-4972-b0c5-bf011aa96eaa</guid>
      <pubDate>Sun, 31 May 2009 20:24:55 -0700</pubDate>
      <category>Tools</category>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=7d11914b-10b6-4972-b0c5-bf011aa96eaa</pingback:target>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=7d11914b-10b6-4972-b0c5-bf011aa96eaa</trackback:ping>
      <wfw:comment>http://redwerb.com/post/Image-Visualizer-Update.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=7d11914b-10b6-4972-b0c5-bf011aa96eaa</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=7d11914b-10b6-4972-b0c5-bf011aa96eaa</feedburner:origLink></item>
    <item>
      <title>Wave Keyboard Review</title>
      <description>&lt;p&gt;&lt;a href="http://redwerb.com/image.axd?picture=WindowsLiveWriter/WaveKeyboardReview_AABB/WaveKeyboard_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="WaveKeyboard" border="0" alt="WaveKeyboard" align="right" src="http://redwerb.com/image.axd?picture=WindowsLiveWriter/WaveKeyboardReview_AABB/WaveKeyboard_thumb.png" width="240" height="114" /&gt;&lt;/a&gt; I’ve been using the &lt;a href="http://www.amazon.com/gp/product/B000TKHGL2?ie=UTF8&amp;amp;tag=briaonli-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B000TKHGL2"&gt;Logitech Cordless Wave Keyboard&lt;/a&gt;&lt;img style="border-bottom-style: none !important; border-right-style: none !important; margin: 0px; border-top-style: none !important; border-left-style: none !important" border="0" alt="" src="http://www.assoc-amazon.com/e/ir?t=briaonli-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=B000TKHGL2" width="1" height="1" /&gt; for some time now and I have to say that I am liking the keyboard. As a developer, I spend a considerable number of hours every day using a keyboard so I tend to be a bit picky when it comes to purchasing a keyboard. Because of this, I almost always cruise over to the keyboard aisle in any store that happens to have one so I can see if there is a keyboard that meets all my requirements.&lt;/p&gt;  &lt;p&gt;The Wave keyboard meets almost every requirement. It is ergonomic, has an extended delete key, does not have the F-Lock feature, wireless, arrow keys are arranged properly, and the useless media features don’t get in the way of the operation of the keyboard. The software also allows you to disable the Caps Lock key (as well as a couple others), a must-have feature of any keyboard.&lt;/p&gt;  &lt;p&gt;The Wave keyboard is so cool, they even have a “making of” documentary.&lt;/p&gt; &lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/rdi9sD_U5Rg&amp;amp;hl=en&amp;amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/rdi9sD_U5Rg&amp;amp;hl=en&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The one feature that is missing on the keyboard that caused me a lot of problems at first was that it doesn’t have a scroll lock key. I use two computers at home, my personal desktop and my work laptop. I had a KVM (Keyboard Video Mouse) switch that used a double press of the scroll lock key to change machines. Without that key, I had to use a double press of the Ctrl key instead which caused a lot of accidental switches. However, I have since switched to the &lt;a href="http://www.amazon.com/gp/product/B001D1UTC4?ie=UTF8&amp;amp;tag=briaonli-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B001D1UTC4"&gt;IOGear GCS22U 2-Port USB KVM Switch&lt;/a&gt;. This switch doesn’t have a keyboard shortcut (at least, I’m not using one), but it does have a convenient remote that I can keep next to me that switches the machines.&lt;/p&gt;  &lt;p&gt;I have since purchased this keyboard at work, though I upgraded to the &lt;a href="http://www.amazon.com/gp/product/B001DJ9GOS?ie=UTF8&amp;amp;tag=briaonli-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B001DJ9GOS"&gt;Logitech Cordless Desktop Wave Pro&lt;/a&gt;. This set includes a mouse with the hyper-scroll wheel. I’ve had once since they first came out and I love having the ability to just whiz through a long page to get to the content I want. The mouse that comes with the standard set is adequate, though you will need to disable the forward button. For some reason they placed the button exactly where I press on the mouse when I am pushing it to the left. I’ve heard this complaint from other reviews as well.&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=MBt1-kI_n-4:cFn7gfslwTk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=MBt1-kI_n-4:cFn7gfslwTk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=MBt1-kI_n-4:cFn7gfslwTk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/MBt1-kI_n-4" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/MBt1-kI_n-4/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/Wave-Keyboard-Review.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=73a4dfdb-d69f-427f-99a5-46db4e946b5c</guid>
      <pubDate>Sun, 17 May 2009 15:29:16 -0700</pubDate>
      <category>Tools</category>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=73a4dfdb-d69f-427f-99a5-46db4e946b5c</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=73a4dfdb-d69f-427f-99a5-46db4e946b5c</trackback:ping>
      <wfw:comment>http://redwerb.com/post/Wave-Keyboard-Review.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=73a4dfdb-d69f-427f-99a5-46db4e946b5c</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=73a4dfdb-d69f-427f-99a5-46db4e946b5c</feedburner:origLink></item>
    <item>
      <title>BizArk is Back!</title>
      <description>&lt;p&gt;
I lost the BizArk framework when I changed web hosts, but it is back now. Check out the full list of features on the &lt;a href="http://redwerb.com/page/BizArk-Framework.aspx"&gt;BizArk page&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
There are a few updates since the last release, but unfortunately I don&amp;#39;t remember what they are (I made the updates a long time ago, but haven&amp;#39;t gotten around to posting them). I believe that I&amp;#39;ve fixed some problems with the ConvertEx class as well as added some new functionality to it. I&amp;#39;ve also added some useful extension classes and fixed some problems with the splash screen not working quite right under certain circumstances. 
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=_LQbJc3jpvE:9Rt83lJc8uo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=_LQbJc3jpvE:9Rt83lJc8uo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=_LQbJc3jpvE:9Rt83lJc8uo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/_LQbJc3jpvE" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/_LQbJc3jpvE/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/BizArk-is-back!.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=47aa3c61-8fc8-4548-b4dc-03cc384bbd50</guid>
      <pubDate>Sat, 04 Apr 2009 15:44:00 -0700</pubDate>
      <category>BizArk</category>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=47aa3c61-8fc8-4548-b4dc-03cc384bbd50</pingback:target>
      <slash:comments>3</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=47aa3c61-8fc8-4548-b4dc-03cc384bbd50</trackback:ping>
      <wfw:comment>http://redwerb.com/post/BizArk-is-back!.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=47aa3c61-8fc8-4548-b4dc-03cc384bbd50</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=47aa3c61-8fc8-4548-b4dc-03cc384bbd50</feedburner:origLink></item>
    <item>
      <title>Introducing the Redwerb Image Visualizer</title>
      <description>&lt;p&gt;
I was in need of an image visualizer for Visual Studio today and I was dismayed that I wasn&amp;#39;t able to find one that I could just download and install. Don&amp;#39;t get me wrong, I found plenty of image visualizers, but they all required me to compile it myself. So I decided to go ahead and build one myself. 
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://redwerb.com/image.axd?picture=WindowsLiveWriter/IntroducingtheRedwerbImageVisualizer_12343/ImgVisScreenshot_4.png"&gt;&lt;img style="border: 0px none " src="http://redwerb.com/image.axd?picture=WindowsLiveWriter/IntroducingtheRedwerbImageVisualizer_12343/ImgVisScreenshot_thumb_1.png" border="0" alt="ImgVisScreenshot" width="240" height="203" /&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
The image visualizer includes the following features:
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Scrolls if the image is too large&lt;/li&gt;    
	&lt;li&gt;Zoom the image from 10% to 300%&lt;/li&gt;    
	&lt;li&gt;Change the background of the frame from light to dark&lt;/li&gt;    
	&lt;li&gt;Includes the following information about the image
	&lt;ul&gt;
		&lt;li&gt;Height&lt;/li&gt;      
		&lt;li&gt;Width&lt;/li&gt;      
		&lt;li&gt;Image type&lt;/li&gt;      
		&lt;li&gt;Horizontal resolution&lt;/li&gt;      
		&lt;li&gt;Vertical resolution&lt;/li&gt;      
		&lt;li&gt;Size in memory (an approximation)&lt;/li&gt;   
	&lt;/ul&gt;
	&lt;/li&gt;        
	&lt;li&gt;Quick access to features via keyboard shortcuts&lt;/li&gt; 
&lt;/ul&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;h3&gt;&lt;a href="http://redwerb.com/page/Downloads.aspx" title="Downloads"&gt;[Download]&lt;/a&gt;&lt;/h3&gt;  
&lt;p&gt;
The source code is also available.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=XCy0a2-xCzE:mSsaA79RPQE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=XCy0a2-xCzE:mSsaA79RPQE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=XCy0a2-xCzE:mSsaA79RPQE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/XCy0a2-xCzE" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/XCy0a2-xCzE/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/Introducing-the-Redwerb-Image-Visualizer.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=94cce4fa-f735-4f18-8917-fb8099e689a1</guid>
      <pubDate>Fri, 03 Apr 2009 19:40:00 -0700</pubDate>
      <category>Tools</category>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=94cce4fa-f735-4f18-8917-fb8099e689a1</pingback:target>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=94cce4fa-f735-4f18-8917-fb8099e689a1</trackback:ping>
      <wfw:comment>http://redwerb.com/post/Introducing-the-Redwerb-Image-Visualizer.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=94cce4fa-f735-4f18-8917-fb8099e689a1</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=94cce4fa-f735-4f18-8917-fb8099e689a1</feedburner:origLink></item>
    <item>
      <title>ASP.Net MVC is released</title>
      <description>&lt;p&gt;On March 30th, Microsoft released the MVC (Model-View-Controller) framework for ASP.Net (&lt;a href="http://reddevnews.com/news/article.aspx?editorialsid=10723&amp;amp;rss=1" target="_blank"&gt;see the press release&lt;/a&gt;). Apparently they have also just licensed the source code under &lt;a href="http://www.opensource.org/licenses/ms-pl.html" target="_blank"&gt;MS-PL&lt;/a&gt; (&lt;a href="http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx" target="_blank"&gt;see ScottGu's Blog post&lt;/a&gt;), which is an open source license (could this be an April Fool's joke?).&lt;/p&gt;  &lt;p&gt;WebForms in ASP.Net is a decent framework for building web applications. WebForms allows you to build web applications in a manner similar to building WinForm applications. This is a powerful concept and one that has made many developers lives better. However, it comes with some cost, especially to how much control you have over the end result. &lt;/p&gt;  &lt;p&gt;MVC is an alternative to WebForms that provides the developer more control over how content is rendered, not to mention using a well known, yet underused pattern for building applications with a user interface. One of the features of this pattern is the ability to unit test your code, which can be very difficult to do in WebForms.&lt;/p&gt;  &lt;p&gt;Here's the description of ASP.Net MVC from the Microsoft download page:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;ASP.NET MVC 1.0 provides a new Model-View-Controller (MVC) framework on top of the existing ASP.NET 3.5 runtime. This means that developers can take advantage of the MVC design patterns to create their Web Applications which includes the ability to achieve and maintain a clear separation of concerns (the UI or view from the business and application logic and backend data), as well as facilitate test driven development (TDD). The ASP.NET MVC framework defines a specific pattern to the Web Application folder structure and provides a controller base-class to handle and process requests for &amp;#8220;actions&amp;#8221;. Developers can take advantage of the specific Visual Studio 2008 MVC templates within this release to create their Web applications, which includes the ability to select a specific Unit Test structure to accompany their Web Application development. &lt;/p&gt;    &lt;p&gt;The MVC framework is fully extensible at all points, allowing developers to create sophisticated structures that meet their needs, including for example Dependency Injection (DI) techniques, new view rendering engines or specialized controllers. &lt;/p&gt;    &lt;p&gt;As the ASP.NET MVC framework is built on ASP.NET 3.5, developers can take advantage of many existing ASP.NET 3.5 features, such as localization, authorization, Profile etc. &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;For convenience, here are some of the resources available out there for ASP.Net MVC:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&amp;amp;displaylang=en" target="_blank"&gt;&lt;strong&gt;Download ASP.Net MVC&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://www.asp.net/mvc/" target="_blank"&gt;Official MVC Site&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/dd394709.aspx" target="_blank"&gt;MSDN documentation&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx" target="_blank"&gt;Free ASP.NET MVC eBook Tutorial&lt;/a&gt; by Scott Guthrie (part of a larger book on MVC coming out soon) &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;From &lt;a href="http://live.visitmix.com/" target="_blank"&gt;Mix 09&lt;/a&gt; (&lt;a href="http://videos.visitmix.com/MIX09/All" target="_blank"&gt;list of all videos&lt;/a&gt;). I haven't seen all these videos yet, but here are the ones on MVC:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://videos.visitmix.com/MIX09/T44F" target="_blank"&gt;Microsoft ASP.NET Model View Controller (MVC): Ninja on Fire Black Belt Tips&lt;/a&gt;&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;See a walkthrough of several tips and tricks for getting the most out of the ASP.NET MVC framework.&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;&lt;a href="http://videos.visitmix.com/MIX09/T23F" target="_blank"&gt;Choosing between ASP.NET Web Forms and MVC&lt;/a&gt;&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;Come hear about the key concepts and features behind the two primary user interface technologies available for ASP.NET: MVC and Web Forms. Learn the pros and cons of both MVC and Web Forms, how to determine the best choice for a specific project, various techniques and patterns used to build MVC applications vs. Web Forms applications, and the implications for using each approach.&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;&lt;a href="http://videos.visitmix.com/MIX09/T49F" target="_blank"&gt;File|New -&amp;gt; Company: Creating NerdDinner.com with Microsoft ASP.NET Model View Controller (MVC)&lt;/a&gt;&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;No slides. Just code. Start with File|New and build a real Web site with ASP.NET, ASP.NET AJAX, Authentication, Authorization, MVC, Microsoft SQL Server and jQuery in sixty-five minutes or less.&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;&lt;a href="http://videos.visitmix.com/MIX09/T50F" target="_blank"&gt;ASP.NET MVC: America's Next Top Model View Controller Framework&lt;/a&gt;&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;See how to build a simple application that highlights some of the key capabilities of ASP.NET MVC. Also, learn how to improve productivity using some of the cool new tooling features.&lt;/li&gt;   &lt;/ul&gt; &lt;/ul&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=pfHctHlIDr0:x6MaUNrjayo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=pfHctHlIDr0:x6MaUNrjayo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=pfHctHlIDr0:x6MaUNrjayo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/pfHctHlIDr0" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/pfHctHlIDr0/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/ASPNet-MVC-is-released.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=82357cdc-019e-4326-b6e1-b2b1b0deff14</guid>
      <pubDate>Wed, 01 Apr 2009 23:13:29 -0700</pubDate>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=82357cdc-019e-4326-b6e1-b2b1b0deff14</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=82357cdc-019e-4326-b6e1-b2b1b0deff14</trackback:ping>
      <wfw:comment>http://redwerb.com/post/ASPNet-MVC-is-released.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=82357cdc-019e-4326-b6e1-b2b1b0deff14</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=82357cdc-019e-4326-b6e1-b2b1b0deff14</feedburner:origLink></item>
    <item>
      <title>New Job</title>
      <description>&lt;p&gt;
On February 2nd, Groundhogs Day (3rd favorite holiday :), I started a new job. I am now the Vice President of Product Development at &lt;a href="http://tourfactory.com/" target="_blank"&gt;TourFactory&lt;/a&gt;, a small company based in Spokane. They provide a web-based service to real-estate agents to help them market the homes they are selling.
&lt;/p&gt;
  
&lt;p&gt;
The application is built primarily in classic ASP and I&amp;#39;ve been a bit nostalgic over the years for the simplicity of that platform, but I&amp;#39;m over that now :). I can&amp;#39;t wait to begin the process of converting the product to .Net (one of the reasons I was hired). Classic ASP is simple, unfortunately it&amp;#39;s a bit too simple. There is not very good support for debugging or Intellisense and there are many language features that I&amp;#39;ve grown accustomed to in my years as a .Net developer that are missing.
&lt;/p&gt;
  
&lt;p&gt;
So far the job has been great. The people there are very easy to work with and are excited about some of the changes that I want to make, especially to the deployment cycle (more on this in another post). 
&lt;/p&gt;
  
&lt;p&gt;
This is my first management position, but I only have to manage 3 other developers, so hopefully I will be able to handle it. I&amp;#39;ve had the opportunity to work for a couple of great managers that I really respect over the years, so hopefully I have picked up a few good habits from them.
&lt;/p&gt;
  
&lt;p&gt;
For those that know me, I still live in Arlington Washington, a town over 300 miles away and on the other side of the Cascade mountains from Spokane. I work every other week in Spokane and am in the process of getting an apartment there. 
&lt;/p&gt;
  
&lt;p&gt;
Spokane is a neat city to work in. You can get through most of downtown without going outside through a series of pedestrian walkways that go through many of the buildings. This is nice because it can get pretty cold in winter and awfully warm in summer. There is also a nice park within a couple blocks of the office that includes rides, trails, trees, a river, and more. There are also a bunch of restaurants in the area that look pretty good, though I&amp;#39;ve only had the opportunity to go to one so far.
&lt;/p&gt;
  
&lt;p&gt;
The building I work in is the &lt;a href="http://www.fernwell.com/" target="_blank"&gt;Fernwell Building&lt;/a&gt;. It was build in 1891, almost 120 years old! Thankfully the building does have electricity, air conditioning, and fiber optics. It is a nice building and has been well maintained. My office is on the 3rd floor, far left corner (see picture below).
&lt;/p&gt;
  
&lt;p&gt;
&lt;a href="http://redwerb.com/image.axd?picture=WindowsLiveWriter/NewJob_CC92/Fernwell_2.jpg"&gt;&lt;img style="border: 0px none " src="http://redwerb.com/image.axd?picture=WindowsLiveWriter/NewJob_CC92/Fernwell_thumb.jpg" border="0" alt="Fernwell" width="223" height="244" /&gt;&lt;/a&gt;
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=s_HgqpwixXU:gmCKQvnD-yA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=s_HgqpwixXU:gmCKQvnD-yA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=s_HgqpwixXU:gmCKQvnD-yA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/s_HgqpwixXU" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/s_HgqpwixXU/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/New-Job.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=b301c0a6-3001-401b-b868-ee926c18b4ed</guid>
      <pubDate>Sun, 29 Mar 2009 16:29:00 -0700</pubDate>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=b301c0a6-3001-401b-b868-ee926c18b4ed</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=b301c0a6-3001-401b-b868-ee926c18b4ed</trackback:ping>
      <wfw:comment>http://redwerb.com/post/New-Job.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=b301c0a6-3001-401b-b868-ee926c18b4ed</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=b301c0a6-3001-401b-b868-ee926c18b4ed</feedburner:origLink></item>
    <item>
      <title>Internet Explorer 8 has been released</title>
      <description>&lt;p&gt;
If you haven&amp;#39;t heard yet, IE 8 was released today (March 19th) at 9am (PDT). IE 8 is supposed to be faster and more standards compliant than its predecessor. However, there doesn&amp;#39;t seem to be any big, noticeable improvements to the browser like there were in IE7 (like tabbed browsing) so it will be interesting to see what the adoption rate for IE 8 will be.
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;p&gt;
	&lt;a href="http://www.microsoft.com/windows/internet-explorer" target="_blank"&gt;&lt;strong&gt;Download Internet Explorer 8&lt;/strong&gt;&lt;/a&gt;
	&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
If you like following the browser wars, Firefox 3.5 (codenamed &lt;a href="https://wiki.mozilla.org/Firefox3.5" target="_blank"&gt;Shiretoko&lt;/a&gt;&lt;sup&gt;1&lt;/sup&gt;) seems to be just around the corner. This is a major update to the current version of Firefox (3.0). 
&lt;/p&gt;
&lt;p&gt;
1. Shiretoko: according to Wikipedia, this is an &lt;a href="http://en.wikipedia.org/wiki/Ainu_language" target="_blank"&gt;Ainu&lt;/a&gt; word meaning &amp;quot;end of the earth&amp;quot;.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=-CYm_jFHn7A:9X00BZkbt24:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=-CYm_jFHn7A:9X00BZkbt24:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=-CYm_jFHn7A:9X00BZkbt24:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/-CYm_jFHn7A" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/-CYm_jFHn7A/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/Internet-Explorer-8-has-been-released.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=7c5f4777-9d17-4902-9ad6-feb3b3088e03</guid>
      <pubDate>Thu, 19 Mar 2009 08:54:00 -0700</pubDate>
      <category>Tools</category>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=7c5f4777-9d17-4902-9ad6-feb3b3088e03</pingback:target>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=7c5f4777-9d17-4902-9ad6-feb3b3088e03</trackback:ping>
      <wfw:comment>http://redwerb.com/post/Internet-Explorer-8-has-been-released.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=7c5f4777-9d17-4902-9ad6-feb3b3088e03</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=7c5f4777-9d17-4902-9ad6-feb3b3088e03</feedburner:origLink></item>
    <item>
      <title>New Blog</title>
      <description>&lt;p&gt;
Over the last few months I&amp;#39;ve had a bunch of problems  with my web host (UltimaHosts.Net) so I decided to drop them in favor of free web hosting at my new work (more on this in a future post). 
&lt;/p&gt;
&lt;p&gt;
I didn&amp;#39;t want to mess with installing Community Server (a bit overkill for what I do), so I figured I would try a new blog engine as well. My new blog engine is BlogEngine.Net. It seems to be a decent, light-weight blog engine with enough features to keep me happy, but without all the extra features that I didn&amp;#39;t use and that just made it difficult to manage. I&amp;#39;m sure I&amp;#39;ll be changing things around in the next few weeks such as figuring out how to get my color scheme, fav icon, logos, etc. 
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=bMU33q-4VkY:_Kb3HGrZ_Dw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=bMU33q-4VkY:_Kb3HGrZ_Dw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=bMU33q-4VkY:_Kb3HGrZ_Dw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/bMU33q-4VkY" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/bMU33q-4VkY/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/New-Blog.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=71cf4eb0-48e5-45b8-bbcf-dadf36c58a20</guid>
      <pubDate>Sat, 07 Mar 2009 17:43:00 -0700</pubDate>
      <category>Blog</category>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=71cf4eb0-48e5-45b8-bbcf-dadf36c58a20</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=71cf4eb0-48e5-45b8-bbcf-dadf36c58a20</trackback:ping>
      <wfw:comment>http://redwerb.com/post/New-Blog.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=71cf4eb0-48e5-45b8-bbcf-dadf36c58a20</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=71cf4eb0-48e5-45b8-bbcf-dadf36c58a20</feedburner:origLink></item>
    <item>
      <title>Getting the Identity Value when Inserting into a Table</title>
      <description>&lt;p&gt;
Unfortunately Google failed me recently. I needed to get the value of an identity field in a Sql Server database after I inserted a record from an ASP.Net application. I&amp;#39;m sure the information is out there somewhere, but I wasn&amp;#39;t able to find it (OK, I didn&amp;#39;t really look that long).
&lt;/p&gt;
&lt;p&gt;
The key to making this work was knowing two basic things.
&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;You can batch statements in a SqlCommand.&lt;/li&gt; 
	&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms190315.aspx"&gt;SCOPE_IDENTITY&lt;/a&gt; is a T-SQL method that returns the last identity assigned within a particular scope.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
Here is the code I wrote that gets the identity for a record that is just inserted and uses it in a second SQL statement. See line # 6 for the SCOPE_IDENTITY usage.
&lt;/p&gt;
&lt;div class="csharpcode"&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;   1:  &lt;/span&gt;var conn = &lt;span class="kwrd"&gt;new&lt;/span&gt; SqlConnection(ConfigurationManager.ConnectionStrings[&lt;span class="str"&gt;&amp;quot;Gleneagle&amp;quot;&lt;/span&gt;].ConnectionString);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;   2:  &lt;/span&gt;conn.Open();
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;   3:  &lt;/span&gt;var trans = conn.BeginTransaction();
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;   4:  &lt;/span&gt;&lt;span class="kwrd"&gt;try&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;   5:  &lt;/span&gt;{
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;   6:  &lt;/span&gt;    var cmd = &lt;span class="kwrd"&gt;new&lt;/span&gt; SqlCommand(&lt;span class="str"&gt;&amp;quot;INSERT INTO Business (Name, Description) VALUES (@Name, @Description); SELECT SCOPE_IDENTITY();&amp;quot;&lt;/span&gt;, conn);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;   7:  &lt;/span&gt;    cmd.Transaction = trans;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;   8:  &lt;/span&gt;    cmd.Parameters.AddWithValue(&lt;span class="str"&gt;&amp;quot;@Name&amp;quot;&lt;/span&gt;, txtBusinessName.Text);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;   9:  &lt;/span&gt;    cmd.Parameters.AddWithValue(&lt;span class="str"&gt;&amp;quot;@Description&amp;quot;&lt;/span&gt;, txtContactInfo.Text);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  10:  &lt;/span&gt;    var busId = Convert.ToInt32(cmd.ExecuteScalar());
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  11:  &lt;/span&gt;&amp;nbsp;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  12:  &lt;/span&gt;    cmd = &lt;span class="kwrd"&gt;new&lt;/span&gt; SqlCommand(&lt;span class="str"&gt;&amp;quot;INSERT INTO BusinessRecommendation (BusinessID, Name, DisplayName, StreetAddress, Description) VALUES (@BusinessID, @Name, @DisplayName, @StreetAddress, @Description)&amp;quot;&lt;/span&gt;, conn);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  13:  &lt;/span&gt;    cmd.Transaction = trans;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  14:  &lt;/span&gt;    cmd.Parameters.AddWithValue(&lt;span class="str"&gt;&amp;quot;@BusinessID&amp;quot;&lt;/span&gt;, busId);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  15:  &lt;/span&gt;    cmd.Parameters.AddWithValue(&lt;span class="str"&gt;&amp;quot;@Name&amp;quot;&lt;/span&gt;, txtName.Text);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  16:  &lt;/span&gt;    cmd.Parameters.AddWithValue(&lt;span class="str"&gt;&amp;quot;@DisplayName&amp;quot;&lt;/span&gt;, txtDisplayName.Text);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  17:  &lt;/span&gt;    cmd.Parameters.AddWithValue(&lt;span class="str"&gt;&amp;quot;@StreetAddress&amp;quot;&lt;/span&gt;, txtAddress.Text);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  18:  &lt;/span&gt;    cmd.Parameters.AddWithValue(&lt;span class="str"&gt;&amp;quot;@Description&amp;quot;&lt;/span&gt;, htmDescription.Html);
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  19:  &lt;/span&gt;    cmd.ExecuteNonQuery();
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  20:  &lt;/span&gt;&amp;nbsp;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  21:  &lt;/span&gt;    trans.Commit();
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  22:  &lt;/span&gt;&amp;nbsp;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  23:  &lt;/span&gt;}
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  24:  &lt;/span&gt;&lt;span class="kwrd"&gt;catch&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  25:  &lt;/span&gt;{
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  26:  &lt;/span&gt;    trans.Rollback();
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  27:  &lt;/span&gt;    &lt;span class="kwrd"&gt;throw&lt;/span&gt;;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  28:  &lt;/span&gt;}
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  29:  &lt;/span&gt;&lt;span class="kwrd"&gt;finally&lt;/span&gt;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  30:  &lt;/span&gt;{
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  31:  &lt;/span&gt;    conn.Close();
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  32:  &lt;/span&gt;    conn.Dispose();
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  33:  &lt;/span&gt;    conn = &lt;span class="kwrd"&gt;null&lt;/span&gt;;
&lt;/pre&gt;
&lt;pre&gt;
&lt;span class="lnum"&gt;  34:  &lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
If you are wondering why line # 10 converts the value to an Integer, SCOPE_IDENTITY returns a numeric value which is translated to be a Decimal because an identity field in Sql Server is not required to be an integer.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=Roeqza9vK88:RGdsnZ8XDF4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Redwerb?a=Roeqza9vK88:RGdsnZ8XDF4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Redwerb?i=Roeqza9vK88:RGdsnZ8XDF4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Redwerb/~4/Roeqza9vK88" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/Redwerb/~3/Roeqza9vK88/post.aspx</link>
      <author>brian.nospam@nospam.brewder.com (bbrewder)</author>
      <comments>http://redwerb.com/post/Getting-the-Identity-Value-when-Inserting-into-a-Table.aspx#comment</comments>
      <guid isPermaLink="false">http://redwerb.com/post.aspx?id=a629fa56-10ab-4277-888f-e5a9ffa3d758</guid>
      <pubDate>Sat, 17 Jan 2009 15:04:00 -0700</pubDate>
      <dc:publisher>bbrewder</dc:publisher>
      <pingback:server>http://redwerb.com/pingback.axd</pingback:server>
      <pingback:target>http://redwerb.com/post.aspx?id=a629fa56-10ab-4277-888f-e5a9ffa3d758</pingback:target>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://redwerb.com/trackback.axd?id=a629fa56-10ab-4277-888f-e5a9ffa3d758</trackback:ping>
      <wfw:comment>http://redwerb.com/post/Getting-the-Identity-Value-when-Inserting-into-a-Table.aspx#comment</wfw:comment>
      <wfw:commentRss>http://redwerb.com/syndication.axd?post=a629fa56-10ab-4277-888f-e5a9ffa3d758</wfw:commentRss>
    <feedburner:origLink>http://redwerb.com/post.aspx?id=a629fa56-10ab-4277-888f-e5a9ffa3d758</feedburner:origLink></item>
  </channel>
</rss>
