Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void ContactsListView_ItemDataBound(object sender, ListViewItemEventArgs e)
- {
- Label EmailAddressLabel;
- if (e.Item.ItemType == ListViewItemType.DataItem)
- {
- // Display the e-mail address in italics.
- EmailAddressLabel = (Label)e.Item.FindControl("EmailAddressLabel");
- EmailAddressLabel.Font.Italic = true;
- }
- System.Data.DataRowView rowView = e.Item.DataItem as System.Data.DataRowView;
- string currentEmailAddress = rowView["EmailAddress"].ToString();
- if (currentEmailAddress == "orlando0@adventure-works.com")
- {
- EmailAddressLabel.Font.Bold = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement