asp.net.ph

Request.AcceptTypes Property

System.Web Namespace   HttpRequest Class


Gets a string array of client-supported MIME accept types.

[ VB ]
Public ReadOnly Property AcceptTypes As String ( ) 

[ C# ]
public string [ ] AcceptTypes {get;}

[ C++ ]
public: __property String* get_AcceptTypes ( );

[ JScript ]
public function get AcceptTypes ( ) : String [ ];

Property Value

A string array of client-supported MIME accept types.

Example

The following example captures the value ( s ) returned by the AcceptTypes property into a string array and writes the index and name of each AcceptType to a separate line of HTTP output.

<script language="C#" runat="server">
string html;

void Page_Load ( ) {
   int i;
   String [ ] arr = Request.AcceptTypes;
   for ( i = 0; i < arr.Length; i++ ) {
      html += "Accept Type " + i + ": " + arr [ i ] + "<br>";
   }
}
</script>
  C# VB

 Show me 

See Also

HttpRequest Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph