Facebook link checker

by Colin Graham 29. February 2012 01:03

One of the guys found this useful tool for testing links and sharing from facebook.

 http://developers.facebook.com/tools/debug

 

 

Tags:

Facebook

Redirecting the Default Document Page (/default.aspx) to the Root level (/) Page

by Colin Graham 8. February 2012 23:34

Great article on how to write SEO friendly URL in terms of duplicate content for the homepage.

http://swortham.blogspot.com/2008/12/redirecting-default-page-defaultaspx-to.html

 

thanks Steve

 

Tags:

SEO

Useful MIME types

by Jeremy Brown 3. February 2012 01:43

Useful MIME types for Microsoft Office documents:

You upload a file to your CMS via your rich text box but you get a 404 error.

The solution to this is Internet Information Services (IIS)


Out of the box, IIS6 only accepts requests for known MIME types. Since Office 2007 was released after Windows Server 2003 and IIS6, IIS6 knows nothing about the new MIME types. So you need to manually add them:

    Open Computer Management. (Right-click My Computer… Manage…)
    Right-click Internet Information Services (IIS) Management… Properties…
    Click MIME Types…
    Click New… and add the following:

.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation

Tags:

Hosting

SQL Server Code to Find Total Size of Database

by Jeremy Brown 2. February 2012 22:10

Total database size script

SELECT

[SpaceUsed(KB)] = SUM(alloc.used_pages)*8

FROM sys.objects obj

JOIN sys.indexes idx on obj.object_id = idx.object_id

JOIN sys.partitions prt on obj.object_id = prt.object_id

JOIN sys.allocation_units alloc on alloc.container_id = prt.partition_id

WHERE

obj.type = 'U' AND idx.index_id IN (0, 1)

Tags:

Converting text from asp.net into .csv

by Colin Graham 2. February 2012 02:08

One painful experience we have had this week has been in converting some data from one of our databases into a .csv.  This sounds simple doesn't it ??  however there were very specific requirements as the .csv had to be imported into a second system. 

We were using the stringbuiler.append method but found that the only way this would work was via the Stringbuilder.appendline method.

 

anyway hope this can help someone else out there.

 

C

Tags:

ASP.Net | VB.Net

 

Posts By Date

Log in