01/05/2012

Calculate the size of log file in Database

To calculate the size of Log file use the follwoing script:

SELECT DB_NAME(database_id) AS DatabaseName,
Name AS Logical_Name,
Physical_Name, (size*8)/1024 SizeMB
FROM sys.master_files
WHERE DB_NAME(database_id) = 'AdventureWorks'
GO




Read more...

Copy sharepoint pages or folders containing webparts

There is way to copy sharepoint pages that contains webparts to another location without lose the webpart, only follow the following steps:

1- Open sharepoint designer.
2- Go to target page or folder.
3- Right-Click, and chose "Publish Selected Files...".
4- Save it to anywhere on your computer.
5- Copy the published files.
6- Paste it anywhere you want by sharepoint designer.

Read more...

Sharepoint search as you type with jquery


Read more...

21/04/2012

04/12/2011

This item cannot be deleted because it is still referenced by other pages

If you create a new master page, and you want delete it, sometimes the error will happen:

This item cannot be deleted because it is still referenced by other pages

what you can do???
aha, there is work around to delete it, easy way:

        1- Open the sharepoint designer.
        2- Create a new folder.
        3- Put the target master page into new folder.
        4- Delete the folder.

Read more...

02/12/2011

Enable the Ajax on MOSS 2007


Read more...

Select a specific column in table by content

To select a specific column by content, you can use the following jquery code:

$(document).ready(function () { $('td').each(function () { var $tds = $(this).find('td'); if ($tds.text() == "System Settings") { <!--alert($currText = $tds.eq(0).text());--> $tds.css("background-color", "#F6F6F6"); }



Read more...

17/11/2011

Permission level cannot be found

Permission level cannot be found. at Microsoft.SharePoint.SPRoleDefinitionCollection.get_Item(String name)

This message happend when you try set permission to user in sharepoint by code with rong spelling.

Such us: you want set "Contribute" for the user, but you write it: "Contributer".

Read more...

29/10/2011

Enterprise Search Case Study


Read more...

Inspiring sharepoint based university sites


Read more...