Archive for March, 2009

In Da Burger House

Friday, March 20th, 2009

There’s a blog for everything, Austin hamburger reviews included. His conclusions are mostly accurate. I felt my veins pulse a little as he trashed Burger House on Spicewood Springs, though. The burger is oh-so-gooey (as it should be!) and is spiced with a mystery concoction that complements, not dominates, the flavour. The fries were rather weak, but that side is something almost every good burger spot in town tends to botch.

As you can see, I take my burgers seriously. I keep meaning to post a Top 5 list.

DropDownList Drops The GridView Ball

Thursday, March 5th, 2009

When .NET 2.0 makes things easy, it makes them brain-dead easy. But when it makes things hard, you wish you were working as a greeter at Wal-Mart. Take GridView editing. If you accept Microsoft’s TextBox method of editing GridView cells, you’re golden. Sometimes you need DropDownLists in place of TextBoxes, and that takes a teensy bit more work:

[code lang="csharp"]


<%# Eval("Role") %>






[/code]

There’s a microscopic UI flaw in this approach: when the user clicks ‘Edit,’ the selected DropDownList item is the first (index 0), not the item that matches the cell’s text. Uniting the two is surprisingly harsh, since the text disappears before the DDL appears. After many unfruitful searches for an answer, one long blog post has a solution. A very dirty but awesomely easy solution. Use the DDL’s ValidationGroup field as short-term memory!