Platform SDK: IIS SDK
      [IIS 5.0] [IIS 5.1] [IIS 6.0]

Response.PICS

The PICS property adds a value to the pics-label response header.

Syntax

Response.PICS(PICSLabel)

Parameters

PICSLabel
A string that is a properly formatted PICS label. The value specified by PICSLabel will be appended to the pics-label response header.

Example

For an .asp file that includes:

<% 

Response.PICS("(PICS-1.1 <http://www.rsac.org/ratingv01.html> labels on " & chr(34) & "1997.01.05T08:15-0500" & chr(34) & " until" & chr(34) & "1999.12.31T23:59-0000" & chr(34) & " ratings (v 0 s 0 l 0 n 0))") 

%> 

The following header would be added:

PICS-label:(PICS-1.1 <http://www.rsac.org/ratingv01.html> labels on "1997.01.05T08:15-0500" until "1999.12.31T23:59-0000" ratings (v 0 s 0 l 0 n 0))

Remarks

The PICS property inserts any string in the header, whether or not it represents a valid PICS label.

If a single page contains multiple tags containing Response.PICS, each instance will replace the PICS label set by the previous one. As a result, the PICS label will be set to the value specified by the last instance of Response.PICS in the page.

Because PICS labels contain quotes, you must replace each quote with " & chr(34) & ".

Applies To

Response Object

Requirements

Platforms: Windows 2000 with IIS 5.0 installed, Windows XP with IIS 5.1 installed, Windows Server 2003 family with IIS 6.0 installed

Platform SDK Release: February 2003
What did you think of this topic?
Order a Platform SDK CD