Thursday, July 31, 2008, 09:44
Posted by Administrator
Posted by Administrator
Yesterday i received my MCTS packet with my personal card
thanks!




( 2.9 / 651 )

Tom Van Gaever - Blog



( 2.9 / 651 )
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();
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