I was recently doing doing support for a client that had a newsletter system. The previous employee had neglected to do much in the form of format validation for email addresses from both a user-input standpoint and system-integrity standpoint. Since there were several email addresses in the database that didn’t meet the basic conventions of […]
View PostCreate a Sortable HTML Table with JQuery and TableSorter
One of the more useful features of ASP.NET’s GridView control is that users can sort the information in the table they are seeing by any number of fields. To allow this sorting to happen, ASP.NET sends a post-back to the server and the web server re-renders the page with the GridView re-sorted in the order […]
View PostHow to Validate Forms with JQuery
Just about everyone who’s ever made a web-application knows that you generally can’t trust your users to enter data correctly into a form. Some of them will ignore important fields, others will type in data that couldn’t possibly be right. Some will try to choose two character passwords and others will enter in a long […]
View PostHash Passwords in C# and Visual Basic Using SHA-512
We recently covered an easy way to hash passwords using SHA-1 in .NET using either Visual Basic or C#. In most cases, SHA-1 encryption is “secure enough”, but there are some mathematical weaknesses. Microsoft’s .NET platform (specifically the System.Security class) allows you to encrypt passwords with a number of differnet algorithms without having to know the […]
View PostHow to Authenticate a User in Active Directory using ASP.NET
If you’re working in an academic or large corporate or government setting, changes are you’re going to have a network in place using Active Directory or an open-source equivalent. Every user in the organization will have some sort of an account to use. If you’re building an internal web-application or desktop-application, it doesn’t make a […]
View PostHow to Resize Photos in ASP.NET
If you’re developing a website that allows users to upload any sort of photos or images, you have to expect that they aren’t going to bother doing any sort of basic image manipulation, such as resizing an 8 megapixel image down to something that’s appropriate for the web. Fortunately, there are a number of good […]
View PostMake A Quick & Easy Testing Environment for Joomla, Magento, WordPress and Other Open Source Web-Applications
Earlier this week, I wrote up a tutorial about how to make a testing environment for Joomla on the windows platform. I went through the instructions of setting up WAMP, making the database, and installing and configuring Joomla. It turns out there’s a much easier way to create a testing environment for Joomla, Magento, MySQL, […]
View PostJQuery Date Picker: One Step Torwards Making Forms That Work
While attending Microsoft Mix earlier this spring, I stumbled upon a book called “Making Forms That Work“, which was written by Caroline Jarrett and Gerry Gaffney. The book focused on building web-forms that aren’t intimidating and that people will actually fill out. One of the focuses was making sure to use the right controls for […]
View PostHow to Export Data to Excel in C# and ASP.NET
If you develop a web-application for a client that involves creating and viewing reports, it’s very likely that they’re going to want to be able to export that data to excel very readily. Fortunately, you won’t need any special libraries or hundreds of lines of code to make that happen in ASP.NET. All you need […]
View PostSearch Engine Optimization (SEO) Your WordPress Blog or Website
WordPress is without a doubt the most popular blogging platform on the web. It’s easy to use, relatively secure, very extensible and best of all free. Unfortunately, it’s not optimized for search engines terribly well out of the box. The URLs that it generates don’t have any keywords in them. There’s no way to customize […]
View Post