Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

now I'm 100% MCTS 
Thursday, July 31, 2008, 09:44
Posted by Administrator



Yesterday i received my MCTS packet with my personal card
thanks!


add comment ( 12 views )   |  permalink   |   ( 2.9 / 651 )
Site Usage Report MOSS2007 
Thursday, July 31, 2008, 08:28 - SharePoint
Posted by Administrator
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.
add comment ( 1 view )   |  permalink   |   ( 3 / 504 )
Installation WSS 3.0 SP1 remarks 
Tuesday, July 29, 2008, 12:18
Posted by Administrator
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?
add comment ( 8 views )   |  permalink   |   ( 3 / 531 )
Set theme for "Operation in progress" page 
Tuesday, July 29, 2008, 08:02 - SharePoint
Posted by Administrator
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 = @"<link rel=""stylesheet"" type=""text/css"" href=""" + currentWeb.ThemeCssUrl + @""" />";

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.


1 comment ( 10 views )   |  permalink   |  related link   |   ( 3 / 582 )
Show an "Operation in progress" in MOSS with c# 
Tuesday, July 29, 2008, 07:54 - SharePoint
Posted by Administrator
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 = “Please wait while your operation is being executed.”;

ctx.TrailingHTML = “Your current operation is currently being executed. Please be patient. Blah blah blah.”;

ctx.Begin();



MyLongRunningOperation();

ctx.End(SPContext.Current.Web.Url);

}

}

catch (ThreadAbortException) { /* Thrown when redirected */}

catch (Exception ex)

{

SPUtility.TransferToErrorPage(ex.ToString());

}


More Information:

MSDN
Hristo Pavlov’s Blog






add comment ( 7 views )   |  permalink   |  related link   |   ( 3 / 599 )

<<First <Back | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | Next> Last>>