You know the feeling when you see someone use a property and you go, nice, I never knew that. Well last night that happened to me after reading Scott Hanselman’s article on Windows Powershell. In the article he created a script that automatically downloaded his podcasts. To do this he use the System.Uri class which [...]
Continue reading about Using System.Uri’s Segments property and List().ForEach
I have been using Inkscape now for a while and I was surprised to see XAML as an export format. This means that I can design UI elements in Inkscape and re-use them in Visual Studio 2008 for WPF/Silverlight applications. This means that I do not have to buy Expression Design, which is a bargain.
I got a Google Wave invite earlier this week and I must admit I have not logged in again since and honestly I have not felt compelled to, but that may just be me. Maybe it is just me, maybe I am not as forward and revolutionary thinking as the people over at Google. To [...]
Today I had this scenario where I wanted to post items from multiple HTML input elements to a generic handler (.ashx) file without using the action attribute of the form. Specifying the action meant that that you are navigated away from the page where the action is happening, which means re-creating UI logic. How did [...]
Continue reading about Getting POST values with an ASHX file
I have come across two ways querying XElements or XAttributes: Make an object IEnumerable and loop through the results Use the Single() method to return a single object only Typically you may have a situation where you write some Linq-to-XML like this: IEnumerable attrib = from att in elemInner.Attributes() where (string)att.Name.ToString() == “sectionName” select att; [...]
Continue reading about Getting a single XAttribute or XElement