<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type='text/xsl' href='http://davidorn.spaces.live.com/mmm2008-07-24_12.50/rsspretty.aspx?rssquery=en-US;http%3a%2f%2fdavidorn.spaces.live.com%2fcategory%2fSoftware%2bDevelopment%2ffeed.rss' version='1.0'?><rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:msn="http://schemas.microsoft.com/msn/spaces/2005/rss" xmlns:live="http://schemas.microsoft.com/live/spaces/2006/rss" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>David Ornstein's Blog: Software Development</title><description /><link>http://davidorn.spaces.live.com/?_c11_BlogPart_BlogPart=blogview&amp;_c=BlogPart&amp;partqs=catSoftware%2bDevelopment</link><language>en-US</language><pubDate>Thu, 09 Oct 2008 12:25:25 GMT</pubDate><lastBuildDate>Thu, 09 Oct 2008 12:25:25 GMT</lastBuildDate><generator>Microsoft Spaces v1.1</generator><docs>http://www.rssboard.org/rss-specification</docs><ttl>60</ttl><cf:parentRSS>http://davidorn.spaces.live.com/blog/feed.rss</cf:parentRSS><live:type>blogcategory</live:type><live:identity><live:id>-7261051835267996140</live:id><live:alias>davidorn</live:alias></live:identity><cf:listinfo><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="typelabel" label="Type" /><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="tag" label="Tag" /><cf:group element="category" label="Category" /><cf:sort element="pubDate" label="Date" data-type="date" default="true" /><cf:sort element="title" label="Title" data-type="string" /><cf:sort ns="http://purl.org/rss/1.0/modules/slash/" element="comments" label="Comments" data-type="number" /></cf:listinfo><item><title>Extra items in ASP.NET controls beyond what's data-bound</title><link>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!271.entry</link><description>&lt;p&gt;Found good info about how to add extra items above and beyond those data bound in ASP.NET. 
&lt;p&gt;See &lt;a href="http://weblogs.asp.net/wallym/archive/2004/07/06/174061.aspx"&gt;DataSource controls really do work in ASP.NET Whidbey&lt;/a&gt;&lt;br&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-7261051835267996140&amp;page=RSS%3a+Extra+items+in+ASP.NET+controls+beyond+what's+data-bound&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=davidorn.spaces.live.com&amp;amp;GT1=davidorn"&gt;</description><comments>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!271.entry#comment</comments><guid isPermaLink="true">http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!271.entry</guid><pubDate>Wed, 05 Apr 2006 03:26:50 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://davidorn.spaces.live.com/blog/cns!9B3B8FD397272614!271/comments/feed.rss</wfw:commentRss><wfw:comment>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!271.entry#comment</wfw:comment><dcterms:modified>2006-04-05T03:26:50Z</dcterms:modified></item><item><title>Delete confirmation dialogs with ASP.NET</title><link>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!270.entry</link><description>&lt;p&gt;Quote:
&lt;blockquote&gt;
&lt;div&gt;
&lt;p&gt;&lt;font face="Geneva, Arial, Sans-serif"&gt;&lt;font size=2&gt;&lt;strong&gt;DetailsView&lt;/strong&gt; and &lt;strong&gt;FormView&lt;/strong&gt; controls support delete operations and delegate the execution to the underlying data source control. If the data source control is configured to execute the delete operation, all works fine, otherwise an exception is thrown. &lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Geneva, Arial, Sans-serif" size=2&gt;The &lt;strong&gt;DetailsView&lt;/strong&gt; generates command buttons automatically and doesn't expose them directly to page code. How can you add a bit of Javascript code to ask for confirmation? Here's the code...&lt;/font&gt;
&lt;p&gt;&lt;font face="Geneva, Arial, Sans-serif"&gt;&lt;a href="http://spaces.msn.com/johnysmith/blog/cns!383F83B16A61FB36!135.entry"&gt;&lt;font face=Tahoma size=2&gt;Smart Delete on ASP.NET&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-7261051835267996140&amp;page=RSS%3a+Delete+confirmation+dialogs+with+ASP.NET&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=davidorn.spaces.live.com&amp;amp;GT1=davidorn"&gt;</description><comments>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!270.entry#comment</comments><guid isPermaLink="true">http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!270.entry</guid><pubDate>Tue, 04 Apr 2006 04:01:40 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://davidorn.spaces.live.com/blog/cns!9B3B8FD397272614!270/comments/feed.rss</wfw:commentRss><wfw:comment>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!270.entry#comment</wfw:comment><dcterms:modified>2006-04-04T04:01:40Z</dcterms:modified></item><item><title>SqlDataSource and identity columns</title><link>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!269.entry</link><description>&lt;p&gt;&lt;font size=2&gt;Everybody seems to think you need a stored procedure to get back the identity of a row inserted using a SqlDataSource.  You don't.  Instead, you can just tack on a select to the end of the insert and use that to get back an output parameter -- that's available in the inserted event for the SqlDataSource. &lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt;  &lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt;For example, in the insert do this: &lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font size=2&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font size=2&gt;InsertCommand=&amp;quot;INSERT INTO [Customer] ([Name]) VALUES (@Name&lt;font color="#ff0000"&gt;); SELECT @NewID = @@Identity&lt;/font&gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New" size=2&gt;&lt;span style=""&gt;Then add an additional parameter to the &amp;lt;InsertParameters&amp;gt;:&lt;/span&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New" size=2&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face="Courier New" size=2&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/font&gt;&lt;font size=2&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font size=2&gt;&lt;span style=""&gt;       &lt;/span&gt;&amp;lt;InsertParameters&amp;gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font size=2&gt;&lt;span style=""&gt;           &lt;/span&gt;&amp;lt;asp:Parameter Name=&amp;quot;Name&amp;quot; Type=&amp;quot;String&amp;quot; /&amp;gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font size=2&gt;&lt;span style=""&gt;          &lt;font color="#ff0000"&gt; &lt;/font&gt;&lt;/span&gt;&lt;font color="#ff0000"&gt;&amp;lt;asp:Parameter Direction=Output Name=&amp;quot;NewId&amp;quot; &lt;strong&gt;&lt;em&gt;Size=4&lt;/em&gt;&lt;/strong&gt; Type=Int16 /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font size=2&gt;&lt;span style=""&gt;       &lt;/span&gt;&amp;lt;/InsertParameters&amp;gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New" size=2&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font size=2&gt;Then you can check for the ID of the returned item here: &lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt; &lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New" size=2&gt;protected void SqlDataSource1_Inserted(object sender, SqlDataSourceStatusEventArgs e)&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New" size=2&gt;{&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font size=2&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;font color="#ff0000"&gt;object newId = &lt;em&gt;&lt;strong&gt;e.Command.Parameters[&amp;quot;@NewId&amp;quot;].Value&lt;/strong&gt;&lt;/em&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="Courier New" size=2&gt;}&lt;/font&gt;
&lt;p&gt;&lt;font size=2&gt;&lt;/font&gt; 
&lt;p&gt;&lt;font size=2&gt;Thanks to &lt;/font&gt;&lt;a href="http://fredrik.nsquared2.com/viewpost.aspx?PostID=318"&gt;&lt;font color="#0000ff" size=2&gt;&lt;u&gt;Fredrik Normén&lt;/u&gt; &lt;/font&gt;&lt;/a&gt;for this!&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-7261051835267996140&amp;page=RSS%3a+SqlDataSource+and+identity+columns&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=davidorn.spaces.live.com&amp;amp;GT1=davidorn"&gt;</description><comments>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!269.entry#comment</comments><guid isPermaLink="true">http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!269.entry</guid><pubDate>Mon, 03 Apr 2006 17:08:26 GMT</pubDate><slash:comments>19</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://davidorn.spaces.live.com/blog/cns!9B3B8FD397272614!269/comments/feed.rss</wfw:commentRss><wfw:comment>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!269.entry#comment</wfw:comment><dcterms:modified>2006-04-03T17:08:26Z</dcterms:modified></item><item><title>Windows Desktop Search APIs</title><link>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!266.entry</link><description>&lt;p&gt;Someday I'm going to do some work with the &lt;a href="http://addins.msn.com/devguide.aspx"&gt;Windows Desktop Search APIs&lt;/a&gt;.  It's great to have such an engine available to build things on top of.&lt;br&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-7261051835267996140&amp;page=RSS%3a+Windows+Desktop+Search+APIs&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=davidorn.spaces.live.com&amp;amp;GT1=davidorn"&gt;</description><comments>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!266.entry#comment</comments><guid isPermaLink="true">http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!266.entry</guid><pubDate>Sun, 22 Jan 2006 19:16:18 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://davidorn.spaces.live.com/blog/cns!9B3B8FD397272614!266/comments/feed.rss</wfw:commentRss><wfw:comment>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!266.entry#comment</wfw:comment><dcterms:modified>2006-01-22T19:16:18Z</dcterms:modified></item><item><title>How to put a DIV over a SELECT in IE?</title><link>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!265.entry</link><description>&lt;p&gt;Never heard of this bug before -- until it bit me when I was building tooltips for a DHTML menu system.  Looks like there's a workaround:  &lt;a href="http://weblogs.asp.net/bleroy/archive/2005/08/09/422047.aspx"&gt;How to put a DIV over a SELECT in IE?&lt;/a&gt;&lt;br&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-7261051835267996140&amp;page=RSS%3a+How+to+put+a+DIV+over+a+SELECT+in+IE%3f&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=davidorn.spaces.live.com&amp;amp;GT1=davidorn"&gt;</description><comments>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!265.entry#comment</comments><guid isPermaLink="true">http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!265.entry</guid><pubDate>Thu, 29 Dec 2005 19:43:48 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://davidorn.spaces.live.com/blog/cns!9B3B8FD397272614!265/comments/feed.rss</wfw:commentRss><wfw:comment>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!265.entry#comment</wfw:comment><dcterms:modified>2005-12-29T19:43:48Z</dcterms:modified></item><item><title>Visual Sidekick (Visual Studio Add-in)</title><link>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!237.entry</link><description>&lt;p&gt;For the past few weeks I've be trying out Visual Sidekick, an add-in for Visual Studio.  It makes it really easy to quickly navigate around a fairly large project quickly.  The trial was about to run out and I decided it's really worth it so I bought a copy.  They've got the UI 98% right and that means it's not only concenptually a good idea but in practice it really speeds things up. &lt;p&gt;Nice job. &lt;blockquote&gt; &lt;p&gt;&lt;a href="http://www.syntaxia.com/"&gt;Syntaxia Technologies - Home of the Visual Sidekick Add-in&lt;/a&gt; &lt;p&gt;Developers constantly jump around between classes, methods and files. They do this when writing new code, debugging existing code and maintaining old code. Code navigation is a fundamental development task, and it is surprising that even the modern IDE's don't do a great job in helping developers navigate their code quickly.  &lt;p&gt;There's got to be a better way... and there is!  &lt;p&gt;&lt;strong&gt;Introducing Visual Sidekick&lt;/strong&gt;&lt;/blockquote&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-7261051835267996140&amp;page=RSS%3a+Visual+Sidekick+(Visual+Studio+Add-in)&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=davidorn.spaces.live.com&amp;amp;GT1=davidorn"&gt;</description><comments>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!237.entry#comment</comments><guid isPermaLink="true">http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!237.entry</guid><pubDate>Wed, 22 Dec 2004 17:56:46 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://davidorn.spaces.live.com/blog/cns!9B3B8FD397272614!237/comments/feed.rss</wfw:commentRss><wfw:comment>http://davidorn.spaces.live.com/Blog/cns!9B3B8FD397272614!237.entry#comment</wfw:comment><dcterms:modified>2004-12-22T17:56:46Z</dcterms:modified></item></channel></rss>