Friday, April 15, 2011

Hiding a Flash component in a page

I was scratching my head over this one for a while. I tried putting a Flash component in a DIV and then set the Display: none

This usually works. But not for Flash.

Long story short. The solution I found set is to set either height: 0px or width: 0px.

You may also need to set the overflow: hidden

<div style:"height: 0px; overflow: hidden>Flash thingy goes here</div>

Then when I want to display it I set the width/height via client side script.

Friday, April 8, 2011

SharePoint: Delete list via STSADM

stsadm.exe -o forcedeletelist -url http://exampleIntranet/Lists/AListToDelete

I found this very useful today.

I was having issues reaching: _layouts/sitemanager.aspx
I kept getting: Object reference not set to an instance of an object.

After a bit of poking around I found that I couldn't get to one of my lists (I'm messing with List definitions and instances). The STSADM command above saved my behind.

Thursday, April 7, 2011

SharePoint 2010: customErrors in Web.Config

Ok I've been trying to ignore this one for a while but it's got to me. I had to figure out why changing <customErrors mode="Off" /> in the usual web.config in your Web App didn't do anything.

So I did a search of the file system and found this file:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config

Yep that's right. You have to change the customErrors setting in this file as well.

Joys of SharePoint...