Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
In the .aspx file
<ItemTemplate>
<asp:Label ID="lblFieldName" Runat="Server" />
</ItemTemplate>
//In your code-behind class
private void Reapeater1_ItemDataBound(object sender, RepeaterItemEventArgs e){
//this won;t work on headers, footers, separators, etc.
if(!(e.Item.ItemType==ListItemType.Item ||
e.Item.ItemType==ListItemType.AlternatingItem))
return;
//get a reference to the data item
DataRowView drv = (DataRowView)e.Item.DataItem;
//get a reference to the label in the item
Label lblFieldName = (Label)e.Item.FindControl("lblFieldName");
//set it's Text value to the field in the datarow
lblFieldName.Text = drv["FieldName"].ToString();
}
OnItemDataBound="Repeater1_ItemDataBound"