how to handle EmptyDataTemplate with repeater ?

 Posted by Bhakti on 12/8/2009 | Category: ASP.NET Interview questions | Views: 6661

Unlike gridview, you can’t find <EmptyDataTemplate> with repeater. You need to handle such situation some different way. One of the way to handle this is, to keep label(initially hidden) in the footer template of repeater. With ItemDataBound event, you can get item count of the repeater and from that count you can decide visibility of the label in footer.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response