<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1948404</id><updated>2011-04-21T11:29:46.399-07:00</updated><title type='text'>Kevin Koehne</title><subtitle type='html'>Nothing Difficult Is Ever Easy</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kkoehne.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kkoehne.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kevin</name><uri>http://www.blogger.com/profile/12454984855618561738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1948404.post-111108757693995195</id><published>2005-03-17T11:17:00.000-08:00</published><updated>2005-03-17T11:26:16.940-08:00</updated><title type='text'></title><summary type='text'>Just found this code in an app:Try   If Not Ok Then      Throw New Exception   End If   flag = TrueCatch ex As Exception   flag = FalseEnd TryPLEASE Don't do this!The variable names have been changed to protect the innocence, but this is the exact code :( This is an extreme example of how exceptions can be misused.</summary><link rel='replies' type='application/atom+xml' href='http://kkoehne.blogspot.com/feeds/111108757693995195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1948404&amp;postID=111108757693995195' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/111108757693995195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/111108757693995195'/><link rel='alternate' type='text/html' href='http://kkoehne.blogspot.com/2005/03/just-found-this-code-in-app-try-flag.html' title=''/><author><name>Kevin</name><uri>http://www.blogger.com/profile/12454984855618561738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1948404.post-111032204556459735</id><published>2005-03-08T14:40:00.000-08:00</published><updated>2005-03-08T14:49:18.746-08:00</updated><title type='text'></title><summary type='text'>I just (re)discovered that the javascript form.submit method does not fire the onSubmit event for a form. I discovered it while trying to add some code to save the position on page at postback. I also discovered that ASP.NET code inserts a __doPostBack method that is used for a variety of reasons. Needed to hijack it so that my code got called.</summary><link rel='replies' type='application/atom+xml' href='http://kkoehne.blogspot.com/feeds/111032204556459735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1948404&amp;postID=111032204556459735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/111032204556459735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/111032204556459735'/><link rel='alternate' type='text/html' href='http://kkoehne.blogspot.com/2005/03/i-just-rediscovered-that-javascript.html' title=''/><author><name>Kevin</name><uri>http://www.blogger.com/profile/12454984855618561738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1948404.post-110494883729277131</id><published>2005-01-05T10:13:00.000-08:00</published><updated>2005-01-05T10:15:38.176-08:00</updated><title type='text'></title><summary type='text'>This is a cool user-interface implemenation by Google called Google Suggest. From an article on The Code Project it appears that a Javascript object called XMLHttpRequest is used to make server requests for the data.</summary><link rel='replies' type='application/atom+xml' href='http://kkoehne.blogspot.com/feeds/110494883729277131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1948404&amp;postID=110494883729277131' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/110494883729277131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/110494883729277131'/><link rel='alternate' type='text/html' href='http://kkoehne.blogspot.com/2005/01/this-is-cool-user-interface.html' title=''/><author><name>Kevin</name><uri>http://www.blogger.com/profile/12454984855618561738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1948404.post-110012431292648575</id><published>2004-11-10T14:05:00.000-08:00</published><updated>2004-11-10T14:05:12.926-08:00</updated><title type='text'></title><summary type='text'>I found this on statement on the Microsoft site that helps clarify the issue I discovered earlier. Best Practices for Handling Exceptions: "The stack trace begins at the statement where the exception is thrown and ends at the catch statement that catches the exception. Be aware of this fact when deciding where to place a throw statement. "</summary><link rel='replies' type='application/atom+xml' href='http://kkoehne.blogspot.com/feeds/110012431292648575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1948404&amp;postID=110012431292648575' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/110012431292648575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/110012431292648575'/><link rel='alternate' type='text/html' href='http://kkoehne.blogspot.com/2004/11/i-found-this-on-statement-on-microsoft.html' title=''/><author><name>Kevin</name><uri>http://www.blogger.com/profile/12454984855618561738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1948404.post-110011918060680601</id><published>2004-11-10T13:33:00.000-08:00</published><updated>2004-11-10T12:50:17.810-08:00</updated><title type='text'></title><summary type='text'>I was trying to track down an issue I was having with Encompass and was trying to find it based on the stack trace I had. The stack trace was very 'shallow', all I could tell was where the last error was 'rethrown' in a Catch statement.I discovered that I was using exceptions incorrectly :(Take for instance this code snippet:Private Sub Button_Click(ByVal sender As Object, ByVal e As </summary><link rel='replies' type='application/atom+xml' href='http://kkoehne.blogspot.com/feeds/110011918060680601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1948404&amp;postID=110011918060680601' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/110011918060680601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/110011918060680601'/><link rel='alternate' type='text/html' href='http://kkoehne.blogspot.com/2004/11/i-was-trying-to-track-down-issue-i-was.html' title=''/><author><name>Kevin</name><uri>http://www.blogger.com/profile/12454984855618561738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1948404.post-110004021715151688</id><published>2004-11-09T14:40:00.000-08:00</published><updated>2004-11-09T14:43:37.150-08:00</updated><title type='text'></title><summary type='text'>I'm doing a magic show on Saturday and was asked to do balloon animals. I thought "Why not, it can't be that hard". Hmm... I was wrong. It's harder than learning a Zarrow Shuffle.</summary><link rel='replies' type='application/atom+xml' href='http://kkoehne.blogspot.com/feeds/110004021715151688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1948404&amp;postID=110004021715151688' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/110004021715151688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/110004021715151688'/><link rel='alternate' type='text/html' href='http://kkoehne.blogspot.com/2004/11/im-doing-magic-show-on-saturday-and.html' title=''/><author><name>Kevin</name><uri>http://www.blogger.com/profile/12454984855618561738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1948404.post-108387714490169848</id><published>2004-05-07T11:18:00.000-07:00</published><updated>2004-05-07T11:18:59.280-07:00</updated><title type='text'></title><summary type='text'>Have you ever wanted to sum the values in a DataGrid in ASP.NET on the client side as the user enters them?Here's how --1) Create a datagrid with a template column that contains a text box in which the user will type the numbers.2) In the ItemDataBound event for the datagrid, FindControl the text box, and append its ClientID to a module level variable (comma separated)3) In the prerender </summary><link rel='replies' type='application/atom+xml' href='http://kkoehne.blogspot.com/feeds/108387714490169848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1948404&amp;postID=108387714490169848' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/108387714490169848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/108387714490169848'/><link rel='alternate' type='text/html' href='http://kkoehne.blogspot.com/2004/05/have-you-ever-wanted-to-sum-values-in.html' title=''/><author><name>Kevin</name><uri>http://www.blogger.com/profile/12454984855618561738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1948404.post-108387596875238957</id><published>2004-05-06T13:39:00.000-07:00</published><updated>2004-05-06T14:00:21.170-07:00</updated><title type='text'></title><summary type='text'>Found out an interesting fact on Request.Redirect. It actually throws an error! This is a problem if you have some code like this:try    ... do some processing ...    Request.Redirect("another page.aspx")catch ex as exception    lblError.text = ex.Messageend tryIn this code I don't want to redirect if there is an error in the processing before the Redirect.To fix, code as follows:</summary><link rel='replies' type='application/atom+xml' href='http://kkoehne.blogspot.com/feeds/108387596875238957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1948404&amp;postID=108387596875238957' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/108387596875238957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1948404/posts/default/108387596875238957'/><link rel='alternate' type='text/html' href='http://kkoehne.blogspot.com/2004/05/found-out-interesting-fact-on-request.html' title=''/><author><name>Kevin</name><uri>http://www.blogger.com/profile/12454984855618561738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
