Splitting a Name into First and Last Names
Although splitting a name into the first and last names is not a major task, it's not quite as trivial as you might first expect due to potential variations.
By Jonathan Wood •
Updated on Sunday, January 30, 2011
|
Create an RSS Feed in ASP.NET
Demonstrates how to create an RSS feed in an ASP.NET application.
By Jonathan Wood •
Updated on Tuesday, December 7, 2010
|
Creating a Sparse Matrix in .NET
A sparse matrix is a data structure that acts like a two-dimensional array but uses far less memory. It is ideal for scenarios where you are maintaining a logical grid and most cells are empty.
By Jonathan Wood •
Created on Thursday, February 10, 2011
|
Converting Text to a URL-Friendly Slug
It is common practice these days to include a URL-friendly version of your title, often called a slug, within your URLs. Here's a simple routine to generate one.
By Jonathan Wood •
Updated on Sunday, December 12, 2010
|
Extending LINQ with Random Operations
You can create extension methods to extend LINQ. Here's some code I came up with for extending LINQ to return random list items and shuffle lists.
By Jonathan Wood •
Created on Saturday, September 22, 2012
|
Colorizing Source Code
Here's some C# code you can use to colorize source code (syntax highlighter) you plan to display on a web page. This code can be used to colorize source code for any programming language that you can write the rules for.
By Jonathan Wood •
Updated on Wednesday, October 30, 2013
|
Calling Web Services Using AJAX
This article presents code that uses AJAX to contact the server from client-side script and get a response without refreshing the current page.
By Jonathan Wood •
Created on Sunday, April 15, 2012
|
Generating a Element
Here's some code that generates a random machineKey element suitable for pasting into your ASP.NET web.config file.
By Jonathan Wood •
Created on Tuesday, April 26, 2011
|
A Scrolling Status Control
Displaying the current status in a status bar doesn't quite cut it when there are many status messages and you want the user to be able to see more than just the most recent. Here's a status control that efficiently displays multiple messages.
By Jonathan Wood •
Created on Wednesday, February 9, 2011
|
Controlling JPEG Compression
The JPG graphics format supports varying level of compression and quality. Although it isn't readily visible, the Image.Save() method allows you to control this level. Here's a sample C# method that demonstrates how.
By Jonathan Wood •
Created on Friday, May 18, 2012
|