Instead of writing:
if (idx == 1)
{
result = “Yes”;
}
else
[...]
Here’s a quick little bit of code that shows how to delete records in your database using SubSonic’s Query Tool. I know you can write this is fewer lines of code, but I think this shows a little more clearly what’s going on.
Using trace back to get the size of a specific directory.
A code snippet upload file using FTP. With some tweak, we could also get the percentage out of this.