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]";

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)