System.Web.UI Namespace
Enables the implementation of <%# ... %>
data binding syntax.
Visibility |
Name |
Value Type |
Accessibility |
public |
Text
|
String |
[ Get ] |
|
This class creates a control for HTML text to allow the handling of <%# data-binding expressions %>
that are processed by the server.
The DataBoundLiteralControl persists the value of its Text property to view state. This class cannot be inherited.
The following example illustrates using the DataBoundLiteralControl object to programmatically access the data associated with a given RepeaterItem object in a Repeater control.
foreach ( RepeaterItem item in myRepeater.Items ) {
Response.Write ( ( ( DataBoundLiteralControl ) item.Controls [ 0 ] ).Text + "<br>" );
}
Show me