Encrypting Source Code
If your application contains sensitive data, here's a way to make it a little harder for anyone to see that data.
By Jonathan Wood •
Created on Saturday, January 22, 2011
|
A SQL QueryBuilder Class
Use the QueryBuilder class to programmatically create SQL queries. This article also discusses the pros and cons of such an approach.
By Jonathan Wood •
Updated on Friday, January 28, 2011
|
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
|
Quick and Easy Method to Remove Html Tags
Here's a short snippet of code you can use to strip out HTML tags from a block of text.
By Jonathan Wood •
Created on Sunday, April 8, 2012
|
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
|