TwitterLinkedInBlog

Thursday, September 29, 2011

.NET - Select a ListItem

sampleDropDownList.ClearSelection();
ListItem sampleListItem = sampleDropDownList.Items.FindByValue(sampleValue);
if (sampleListItem != null)
{
    sampleListItem.Selected = true;
}

SQL Server - Change Result Set Size

Tools > Options... > SQL Server Object Explorer > Commands > Table and View Options > Value for Edit Top <n> Rows command > 300

Friday, September 2, 2011

The trust relationship between this workstation and the primary domain failed

Disconnect network connection > Log in with domain credentials > Reconnect network connection.