asp.net.ph

FormView.Caption Property

System.Web.UI.WebControls Namespace   FormView Class


.NET Framework version 2.0

Returns or sets the text to render in an HTML caption element in a FormView control. This property is provided to make the control more accessible to users of assistive technology devices.

Syntax


Inline <asp:formview caption = strCaption ... >
Script FormView.Caption [ = strCaption ]

Property Value


sCaption A string that represents the text to render in an HTML caption element in a FormView control. The default value is an empty string ( "" ).

This property is read/write with no default value.

Remarks

Use the Caption property to specify the text to render in an HTML caption element in a FormView control. The text that you specify provides assistive technology devices with a description of the table that can be used to make the control more accessible.

Additional accessibility support for the FormView control is provided by the CaptionAlign property. Use the CaptionAlign property to specify the alignment of the HTML caption element in a FormView control.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool.

Example

The following sample illustrates using the Caption property.

<asp:formview id = "EmployeeFormView"
   datasourceid = "EmployeeSource"
   allowpaging
   datakeynames = "EmployeeID"
   caption = "Employee Details"
   captionalign = "Left"  
   runat = "server">
See Also

FormView Members   CaptionAlign 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