apply stylesheet Method

Applies to: SharePoint Foundation 2010

Links a cascading style sheet from the client application to a page or to an entire Web site. This method is used to apply a style sheet as a link when no pages are open. Note that FrontPage Server Extensions from Microsoft treats the style sheet as a theme so that the apply_opt parameter determines how to apply the style sheet.

In Microsoft FrontPage, click Style Sheet Links on the Format menu to display the Link Style Sheet dialog box. Click either All pages or Selected pages and then click Add to enter the URL of the style sheet you want to use.

method=apply stylesheet:server_extension_version
&service_name=/&link_list=list_of_links&url_list=list_of_URLs 
&apply_opt=(web|page[rfi])[&validateWelcomeNames=(true|false)]

Parameters

service_name Parameter

link_list Parameter

url_list Parameter

apply_Opt Parameter

validateWelcomeNames Parameter

Decoded

POST /site_url/_vti_bin/_vti_aut/author.dll HTTP/1.0
. 
. 
.
method=apply+stylesheet:6.0.n.nnnn
&service_name=/
&apply_opt=web,rfi
&link_list=[file:///local_drive:/full_path/file_name.css;
http://host_name/site_name/directory_name/file_name.css]
&url_list=[_borders/top.xml;_borders/left.xml;_borders/bottom.xml;pr02.xml]

See Also

Concepts

Server Versions for SharePoint Foundation