Advanced .NET: Storing ViewState in a database

Posted by Adrian Sat, 27 Jun 2009 21:06:00 GMT

There are several ways that you can store viewstate in a database (rather than in a hidden field on the page), but there are very few examples of how to actually do it on the web. Maybe that’s because there aren’t many genuine reasons for changing the default behaviour. You certainly should think twice before changing such a fundamental element of your web applications. This article shows you how to do it if you need to.


Use these functions in Oracle when you want to remove the time portion of a date value. This is useful if you want to select values for a complete day, regardless of the time, for example.


Generating SHA1 and MD5 hashes in .NET (C#), Java and Ruby

Posted by Adrian Fri, 26 Jun 2009 21:04:00 GMT

Hashes are a vital technique for validating data that has been passed between two systems. Quite often, the simplest implementation of a hash in one language won't necessarily produce the same hash-string as another language. This article gives you code snippets for three languages that produce identical hashes for any given data.


Basic Ruby: Running external commands

Posted by Adrian Fri, 26 Jun 2009 21:03:00 GMT

This brief article explains how you can call executables and scripts from your Ruby program.


Ruby Programming: Detecting free/used network ports in your Ruby script

Posted by Adrian Fri, 26 Jun 2009 21:03:00 GMT

This snippet shows you how to detect which network ports are in use on the current machine from a Ruby script


SQL Server Basics: Select from multiple tables using INNER JOIN

Posted by Adrian Fri, 26 Jun 2009 21:00:00 GMT

If you select from multiple tables using a list of comma separated tables after your FROM keyword (E.G., SELECT * FROM table1, table2) this article explains how to use the far better ANSI standard INNER JOIN to make your queries more readable and, therefore, maintainable.


SQL Server Basics: Avoiding IN and NOT IN

Posted by Adrian Fri, 26 Jun 2009 20:59:00 GMT

IN and NOT IN are often the cause of otherwise inexplicably slow procedures in SQL Server. This article briefly explains why they should be avoided and how to better implement the same functionality.


SQL Server Basics: Understanding Indexes

Posted by Adrian Fri, 26 Jun 2009 20:57:00 GMT

Indexes are an incredibly important tool that, if used correctly, will help you see huge performance improvements in your database. This article takes you through the basics.


SQL Server Basics: How EXEC affects the performance of Stored Procedures

Posted by Adrian Tue, 23 Jun 2009 20:55:00 GMT

When you write stored procedures, which are an excellent way of encapsulating functionality and improving performance, you should avoid the use of EXEC and EXECUTE keywords at all costs. This article explains why.


Learn how to page data inside SQL Server using the rank() function to create virtual row numbers for your recordsets. For high volume databases or large recordsets, this method is significantly faster than returning all of the data to your client application and paging it in memory


About

We are a small British company that produces business-oriented software and solutions. These articles are a product of our daily work - information that we think might be useful to share. We hope you find them useful.

Our Software

These are some of our products. Several are open source, some are web-based and others are proprietary:

Categories

Archives

Syndicate

ml> ._trackPageview(); } catch(err) {} ml> l> pageTracker._trackPageview(); } catch(err) {} ml> ._trackPageview(); } catch(err) {} ml> l>