Caption

[This is preliminary documentation and subject to change.]

The Caption property specifies the text of a caption for the table.

Syntax

Caption = Value

Parameters

Value
Text that specifies the table's caption. This text can contain HTML formatting.

Example

The following example creates a table with the caption, "Hello, World!".
<%
  Set Conn = Server.CreateObject("ADODB.Connection")
  Conn.Open "ADOSamples"
  Set RS = Conn.Execute("SELECT * FROM Orders")
  
  Set myHtmlTable = Server.CreateObject("IISSample.HTMLTable") 
  myHtmlTable.Borders = True
  myHtmlTable.Caption = "Hello, World"
  myHtmlTable.AutoFormat(RS)
%>
 

Applies To

HTML Table Formatter Component

See Also

CaptionStyle