mylifeinaminute.com

Archive for July, 2008

Binding a Databound WebControl to a SharePoint List

by liquidpooled on Jul.22, 2008, under .NET, Microsoft, Office, Sharepoint Server, Visual Studio 2005, Visual Studio 2008, Windows SharePoint Services

To bind a databound WebControl (System.Web.UI.WebControls, etc.), you can use the following code:


DataSet ds = new DataSet();

SPSite myWeb = SPContext.GetContext(HttpContext.Current).Web;

SPList list = myWeb.Lists["ListName"];
DataTable DTable_List = list.Items.GetDataTable();
DTable_List.TableName = "Table1";
ds.Tables.Add(DTable_List);

DropDownBGroup.DataSource = ds.Tables["Table1"];
DropDownBGroup.DataTextField = "FieldName";
DropDownBGroup.DataValueField = "FieldName";
DropDownBGroup.DataBind();
DropDownBGroup.SelectedIndex = 0;

myWeb.Dispose();
Leave a Comment more...

When AllowUnsafeUpdates doesn’t cut it…

by liquidpooled on Jul.21, 2008, under .NET, Microsoft, Office, Sharepoint Server, Visual Studio 2005, Visual Studio 2008, Windows SharePoint Services

There are times when working with the object model where things just don’t work the way we think they should.  I ran into such a case today when attempting to add custom profile properties to an SSP if the did not already exist.  This post over at Bamboo Nation saved the day.

Leave a Comment more...

Nintendo Wii and a 52030 Network Error

by liquidpooled on Jul.13, 2008, under Airport, Apple, Nintendo, Wii

My Wii had been functioning fine (connecting to an Airport Express) for several weeks until we suffered a power outage (What can I say, the Wii isn’t on the UPS!).  After bring the entertainment center back up (it’s like mission control at NASA), the Wii would not reconnect to the wireless network at all.  Repeated attempts to enter the password as well as altering several aspects of the router configuration failed to help.

There was however one action that allowed the Wii to connect.  Changing the channel that the router operates on from “Automatic” to Channel 1 allowed the Wii to see the world again.  Someone at Nintendo needs to put out an update to allow their hardware to connect on more that two channels (I’ve heard that Channel 11 also works quite well).

Leave a Comment more...

Windows Media Center cannot play this DVD

by liquidpooled on Jul.12, 2008, under Media Center, Microsoft, Vista

Windows Media Center cannot play this DVD. Please Restart Windows Media Center and insert the DVD again.

What a great error message.  I’m not sure what update I could have installed that would prevent me from playing DVDs in my Vista Media Center PC, but one of them removed that ability.  The fix(es)?  Re-enable UAC or map your DVD folders to a network drive.  Why this only affects local media (and not network media) is anyone’s guess.  I opted for re-enabling UAC as this seemed easier than remapping 4 external USB drives.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...