Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
General Reference
Reference
Protocols
 apply stylesheet Method
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
apply stylesheet Method

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

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]

Success

message=successfully applied style sheet links

Error

Returns an error message in standard format. For more information, see Error Message Format for FrontPage 2002 Server Extensions.

May also return the following error message:

message=could not apply style sheet links
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker