ASP.NET Uploading and Resizing Images

11. October 2009

When working on the web whether it be a full blown CMS or a small product cart. The issue of how to upload images, and especially resize them to fit your site comes up quite a bit. C# has a useful image library that you can use to resize your images to fit your needs. This post will show you how to upload the file, manipulate it, and then save it so that it can be used where you need it.

More...

ASP.NET, SQL Server, General, LINQ , , ,

TripleDES Encrypt/Decrypt Extension Methods

12. August 2009

Every developer has reusable utilities that they have created and perfected during their time in development. One of the most favorite ones in my arsenal is a utility to encrypt and decrypt strings using TripleDES encryption.

More...

General ,

I love the Coalesce operator in C#

11. August 2009

Recently I was given a requirement where clients can enter alternate text for particular content and even alternate text to the alternate text. They wanted it so that the default text would only show if the first and second alternate text was null.

More...

.NET 3.5, LINQ, General , ,

ASP.NET 301 Redirect In Master Pages

18. June 2009

Today I was asked if we could set up a 301 Redirect for all non “www” request. For example if someone requested http://robbihun.com/page/about-me.aspx it would automatically do a 301 (permanent) redirect to http://www.robbihun.com/page/about-me.aspx thus making all existing links (and SEO links) work without issue.

More...

ASP.NET, General ,

Manipulating POST Data with Fiddler

8. June 2009

I like it when a new programming challenge crosses my mind. This is something i've never done before and it was a fun, quick challenge.

It all started with a simple twitter post that said 

So who's writing the scipt to automatically put 
#squarespace into every tweet for the next 30 days?

More...

General , , , ,