ASP.NET Text Property

Definition and Usage

The Text property is used to set or return the text content of the TableCell control.

Syntax

<asp:TableCell Text="string" runat="server" />
Property Description
string String value, specifies the text of the table cell.

Example

The following example sets the text of the TableCell control:

<form runat="server">
<asp:Table id="tab1" runat="server">
<asp:TableRow
<asp:TableCell Text="Hello" />
</asp:TableRow>
</asp:Table>
</form>

Example

Set the Text Property of the TableCell Control