Site Usage Report MOSS2007

Recently i found a new hidden gem in SharePoint: Site Usage Reports

when you navigate to a site like http://moss01 this will redirect you to the page http://moss01 /Pages/Default.aspx.

Replace Pages/Default.aspx with _layouts/usageDetails.aspx and you'll receive a very clean and simple usage report page.

Discription of the page:

Use this page to view a detailed usage report for this Web site. The report does not include data for sites under this Web site. To see detailed data for these sites, see their corresponding usage reports. For usage information on all sites in this site collection see the Web site collection usage summary.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Installation WSS 3.0 SP1 remarks

After a succesfull installation of WSS 3.0 SP1 i got a unexpected error when i tried to open the CA page and the moss portal page.

frustrated about the “unexpected error occured” that changed the web.config to display the error message like explained here

after hitting CTRL+F5 both pages are working just fine.. to hit your head against the wall don't you agree?

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Set theme for "Operation in progress" page

In my previous post was shown that it's quite easy to create the “Operation in progress” page, but when you will notice this page is shown with the default microsoft theme. In order to use the theme that is used by the MOSS server…


string style = @" ";

SPLongOperation op = new SPLongOperation(this);
op.LeadingHTML = style + "[Enter your message here]";
op.Begin();

currentWeb.ThemeCssUrl gets the location of the CSS file that is used.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Show an "Operation in progress" in MOSS with c#

When you have a time consuming method in your custom sharepoint code, you can give the user a nice animated

this is done quite easily. The SharePoint namespace provides a class called SPLongOperation use an object of this class to call its Begin() and End() methods. You need to define to the End() method a string that contains the redirect url after the operation is completed.

try

{

using (SPLongOperation ctx = new SPLongOperation(this.Page))

{

ctx.LeadingHTML =

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)