Free Template: Natatorium
Started out as a tutorial to make tables less boring via applying various formattings and ended up as a template instead. Enjoy. :-D
Started out as a tutorial to make tables less boring via applying various formattings and ended up as a template instead. Enjoy. :-D
Suppose you're showing a list of customers, and you want to highlight any customer who'd been with you since before 1920. Maybe you also want the JoinedOn field to show the number of months for customers who've been with you for less than a year. It's fairly easy.######Add OnRowDataBound Handler to GridView
The easiest place to change the data is just after the data gets bound to the row. So:
<asp:GridView runat="server" ID="CustomerGrid" OnRowDataBound="CustomerGrid_OnRowDataBound">
</asp:GridView>
protected void CustomerGrid_OnRowDataBound(object sender, GridViewRowEventArgs e)
{
GridViewRow row = e.Row;
// Make sure we aren't in header/footer rows
if (row.DataItem == null)
{
return;
}
Customer customer = row.DataItem as Customer;
if (/* Do your conditionals here*/)
{
// Change Row formatting here OR
// Add new cells
// Or create an entirely different cells
}
}
<asp:BoundField DataField="CreatedOn" DataFormatString="{0:M/dd/yyyy}" HtmlEncode="false" />######Other Resources:
From Deviantart.












Wordpress Templated is, as you might have guessed from the screenshot, a little utility written to make your life better by making theme-creation easier.
For example, if you are anything like me, you can never remember the doctype specification for — wait for it — any doctype. Well, now you don't have to: simply type in "{Doctype type="Xhtml 1.0 Strict"}", click a button, and sit back and watch as you get the doctype url back. On second thought, don't sit back, because you'll surely get frustrated at having to come right back to an upright position. ;-)
I'm working on a side project that makes creating Wordpress themes easier and therefore makes me happier. It's almost ready, but while I procrastinate on putting the finishing touches on the application, let's talk about seeing your command prompt in a completely different light font. Lucida Console is an okay font, but the thing is there are better fonts out there. Turns out that it's really easy to change the default font of the command prompt; though you might get a bad case of jitters at touching the registry. ;-)
Go to Start > Run and type in regedit. This opens up the registery editor. Before doing any changes, we'll be sane and backup our registery. Go to File > Export and give your registery backup an appropriate name. Hopefully, we won't have to use it.
Once you're done backuping the registery, navigate to:
HKLM Software Microsoft WindowsNT CurrentVersion Console TrueTypeFont
Where HKLM = "HKEYLOCALMACHINE."
Right-click on the right pane and select New > String Value. Give the new key the name: "00" (or "000" if you already have a "00," and so on...). Microsoft says:
The name needs to be incrimented with "0" for each additional font.
Right-click on your newly-created key and select "Modify". Type in the name of the font you want in the "Value data" box. So for example, if you want the Consolas font, type in "Consolas" (without the quotation marks, of course).
Read the aforementioned Microsoft article on what criteria your fonts should satisfy.
Hopefully, you were able to boot up without a problem. Go to the command prompt. Right-click on the title bar and select "Defaults". Go to the "Font" tab. Select your new font in the "Font" section and set the size appropriately. :D
Right-click on the title bar and select "Properties" instead of "Defaults". Set the font to whatever and click OK. You'll be asked whether you want to set it for the current window only or save it for all future windows with the same title.
Whenever I do a squeaky-clean install of Windows XP (which seems to be at least once a month grr), there are always applications/additions/extensions/what have you that I add right away. I was recently contemplating yet another reinstall and, in making the list, thought it might be a good idea to put them down here so I don't have to go chasing after these links when I need them in case people don't know about (some of) them.
A Power-Toy from Microsoft, it shows you a thumbnail preview of the running applications when you press ALT+TAB (normally, you just get a small icon). This is especially useful if you're one of those people who have twenty applications running at the same time. ;-)
Probably useful only for Graphics Designers and Web Designers. It allows you to pick colors from anywhere on the screen. It gives you the color values in RGB, HSV, and hexadecimal (used for web); it even tells you what web-safe color is nearest to the color that you picked (all though I typically don't use this option all that much). Here's a link.
I doubt I'm going to have to do any explaining, so I won't. ;-)
FTP Clients. I used both of them, and both are good, fast, and realiable, but I have a slight preference for FileZilla over Smart FTP Client. Also, FileZilla is free whereas Smart FTP Client is a shareware. Which one you use ultimately depends on your personal tastes. Link to FileZilla. Link to Smart FTP Client.
Both are free virus-scanner for Windows; the latter is from Microsoft and still in beta. Link to ClamWin. Link to Windows Defender. While you're at it, grab Spybot – Search & Destroy too.

Screenshot utility. Before Cropper, making a screenshot meant going through the tedious task of hitting Print Screen (which grabs the whole screen), and cropping it in Photoshop (which doesn't exactly have the fastest startup time). Trust me, Cropper is way better.
There isn't much to say about Firefox other than it rocks (most of the time). However, I've grown very fond of Flock, despite the fact that I rarely ever use its features (built-in photo management and blog-posting among others). It definitely has a better default UI/theme than Firefox.
This is possibly (probably?) of interest only to more technically-inclined people, but all the same, Process Explorer from Sysinternals is an indespensible tool when it comes to digging up information about all the processes running on your computer, and oh so much better than Windows Task Manager.
The default themes you get with Windows are ugly. (Fortunately, Microsoft seems to be going in the right direction with Vista.) WindowsBlinds and StyleXP allow you to install themes and turn your atrocious environment into something you just might like looking at every morning.
(StudioTwentyEight's Tiger 2 Visual Style is quite excellent for all Mac-look enthusiasts out there.)

Power-Toy from Microsoft. I found this little gem six months ago, installed it, turned it on, and never looked back.
Windows XP Only.
Creating thumbnails out of screenshots is possibly my most mind-numbingly boring and time-consuming task when writing a blog post. I recently found a neat trick to make this mostly painless: 1. Open the folder where you saved your image. 2. Right-click on the image and select Resize Pictures from the context menu.
The clarity of the resized picture is surprisingly clear.
**Update: ** Actually, to be able to do this, you need the ImageResizer PowerToy from Microsoft.