Empty Div With Width Displays Height in IE

I have a wrapper div that contains a user control that may or may not always display content. If it doesn’t have content, then the div should be empty and empty divs shouldn’t have any height right? Well, all the browsers agree with me – except Internet Explorer. Apparently since I’ve given this div a [...]

Sharepoint Dispose

Apparently I was informed that when instantiating an SPWeb or SPSite object, I should call Dispose on those objects to make sure they’re released.
Until one day I stumble upon this lovely error:  “Trying to use an SPWeb object that has been closed or disposed and is no longer valid”
So I google it and find out [...]

Disable javascript debugging Visual Studio 2008 + IE8

So I upgraded to Internet Explorer 8 and now VS is debugging javascript errors for me, read blog article below for help:
http://blogs.msdn.com/greggm/archive/2009/04/06/disabling-script-debugging-in-vs-2008-ie8.aspx

IIS: The process cannot access the file because it is being used by another process.

Got this error while trying to create a website in IIS. Turns out killing my Skype client fixed the problem.

SharePoint Development

Today at work it was suggested that our SharePoint team (about 3 developers) use a single server on our network as our primary SharePoint development environment. That means all three developers will log on to the same server with different accounts, use Visual Studio and deploy to the same instance of SharePoint, all on the same box.
Those familar with SharePoint [...]

Debugging in SQL Management Studio

One common frustration is trying to debug SQL queries using the built-in editor within Microsoft SQL Server 2005 Management Studio. The database will kindly inform you of any errors when you attempt to execute a query, and also provide a line number. But that’s about it.
Compared to the error highlighting features available in Visual Studio,  [...]

T-SQL Return True / False based on Is Null

So I’m working on a project where images are uploaded to a database table. The table has an image column, and if there is no image, then the column is just null,  but otherwise the bytes for the image are stored.
An ASPX page takes in the row id for this table via querystring and serves up the [...]