Dynamicweb 8 Documentation
AddStylesheet(String,String) Method
Example 

The stylesheet reference.
The media type. One of print, screen, tv, all or other valid css media type. Default is string.empty.
Adds a stylesheet path to the pages stylesheets section in head for a given media.
Syntax
'Declaration
 
Public Overloads Sub AddStylesheet( _ 
   ByVal stylesheet As String, _ 
   ByVal media As String _ 
) 
public void AddStylesheet( 
   string stylesheet,
   string media 
)

Parameters

stylesheet
The stylesheet reference.
media
The media type. One of print, screen, tv, all or other valid css media type. Default is string.empty.
Example
Adding a stylesheetAdding a stylesheet
PageView.Current().AddStylesheet("/Files/System/MyCss.css", "print");
PageView.Current.AddStylesheet("/Files/System/MyCss.css", "print")
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PageView Class
PageView Members
Overload List

Send Feedback