fr3dr1k on August 5th, 2010

Ajax is not new, its not revolutionary, but it has changed the way I view web development. Javascript no longer comes as a might-have, instead it comes as a critical part of any website application. These days I use JavaScript as the UI scripting tool of choice, and I try to steer away from doing [...]

  • Share/Bookmark

Continue reading about Ajax in the .NET environment…

fr3dr1k on July 11th, 2010

I find myself going to StackOverflow a lot recently if I need to search for an opinion on something related to C# or ASP.NET. Strangely you will find that in the first 10 results of a Google search you will find one, maybe two, pointing to StackOverflow. I digress, and the reason I am writing [...]

  • Share/Bookmark

Continue reading about Logging frameworks for C#

fr3dr1k on April 27th, 2010

Types in C# and the .NET framework are the fundamental building block of program design, and in C# they are divided into built-in, primitive types, and user-defined types. Generally speaking the user-defined types refer to classes, and classes are essentially made up of built-in types and other user-defined types themselves. Primitive types can also be [...]

  • Share/Bookmark

Continue reading about What are the data types available in C#?

fr3dr1k on April 19th, 2010

You all love the Springboks right? Those men in green who do South Africa proud? Well I guess the Kiwis or Aussies or Pommies or…err wait ok dont like the Springboks that much. But I love em and the other night I started thinking about writing an app that will allow me to select a [...]

  • Share/Bookmark

Continue reading about Springbok Selector App

fr3dr1k on April 10th, 2010

I am busy doing a CBT course with the idea of writing MCTS exams and I started by doing some stuff on C# and the .NET framework that focuses specifically on types. The .NET framework is a strongly typed framework and what we mean by strongly typed is that each variable (or type) that you [...]

  • Share/Bookmark

Continue reading about Doing some C#/CLR stuff

fr3dr1k on December 12th, 2009

Yesterday I was busy with HTML to PDF conversion and for this I used the HTML Agility Pack. Everything worked great, except it seemed IE and FF/Chrome render different HTML. So today I took some fairly straightforward HTML and pushed it through HTMLAgility: New Website Under Construction And if I use this code to loop [...]

  • Share/Bookmark

Continue reading about Interesting code with HtmlAgilityPack

fr3dr1k on December 5th, 2009

Ok so admittedly I have been using ASMX services for too long now and the time has come to kick it to the curb and adopt WCF. And the issue I have been having of late was that I was skimming through code just to get stuff done, without spending the time understanding some of [...]

  • Share/Bookmark

Continue reading about WCF – Getting the foundations right

fr3dr1k on November 13th, 2009

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 [...]

  • Share/Bookmark

Continue reading about Using System.Uri’s Segments property and List().ForEach

fr3dr1k on November 4th, 2009

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 [...]

  • Share/Bookmark

Continue reading about Getting POST values with an ASHX file

fr3dr1k on November 2nd, 2009

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; [...]

  • Share/Bookmark

Continue reading about Getting a single XAttribute or XElement

Get Adobe Flash playerPlugin by wpburn.com wordpress themes