This documentation is archived and is not being maintained.

HttpResponse.Pics Method

Appends a PICS-Label HTTP header to the output stream.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public void Pics (
	string value
public void Pics (
	String value
public function Pics (
	value : String
Not applicable.



The string to add to the PICS-Label header.

Platform for Internet Content Selection (PICS) is a World Wide Web Consortium (W3C) standard for content labeling. PICS is essentially a language for creating a ratings system.

Any value can be a PICS label; ASP.NET does not validate the label. The maximum length of the string is 255 characters. For more information about PICS standards and syntax, see the World Wide Web Consortium's Web site at

The following code example is an ASP.NET page that displays an image. The page code calls the Pics method to set the PICS-Label HTTP header for the response. The String passed as the parameter to the Pics method represents a rating label generated from the Internet Content Rating Association (ICRA) Web site.

<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<script runat="server">

    // When this page is loaded, the Pics method
    // sets the PICS-Label header for the response.
    private void Page_Load(object sender, EventArgs e)
          "(pics-1.1 <> " + 
          "comment <ICRAonline EN v2.0> " + 
          "l r (nz 1 vz 1 lz 1 oz 1 cz 1) " + 
          "<> " +
          " l r (n 0 s 0 v 0 l 0))");

<html xmlns="" >
    <title>ASP.NET Example</title>
    <form id="form1" runat="server">
        <img height="75%" src="animated.gif" width="100%" alt="An animated GIF"/>

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0