Saturday, February 07, 2009

Previous Entry

The last entry looks fucked up because the blockquote button on the blogger is finnicky. Why is it finnicky, I don't understand ... You'd think it'd act like a toggle button.

Also I added some xml for my query. They're invisible because 'compose' doesn't automatically escape them.

I went to Edit Html and it's a mess. I'm not going to bother to escape them myself. I figured Blogger would take care of this. It obviously hasn't.

Bleh.

Wednesday, February 04, 2009

SharePoint Sucks - How do I debug this?

This is some dummy code that I'm testing:

SPSite site = new SPSite("http://site/");

        SPWeb web = site.RootWeb;

        SPList list = web.Lists["Project Management Documents"];

        SPView view = list.Views["View Reports"];

        SPQuery query = new SPQuery(view);
        query.Query = @"
                        
                          
                        ";

        query.RowLimit = 5;

        spLit.Text = list.RenderAsHtml(query);
So I execute the code. I get a null reference error at the bottom.

I'm like, that's odd. If any of those were actually null, then I should have gotten an error. Anyways, let's see:

list - exists
query - exists
spLit - exists

Fuck you SharePoint.