All the writeups on ListView's EmptyDataTemplate say that it's for displaying the fact that no data records exist, which is logical; but the bad thing is that I've found nothing as a follow-up. In other words, I haven't been able to find any "now what?" once you (as the site user) find that there aren't any data records. I am led to then ask what the real purpose of the EmptyDataTemplate is if you can't do anything with it.
I added a button called "Add Your Photo" on the EmptyDataTemplate, which activates a ModalPopupExtender with an AsyncFileUpload. All this works fine in terms of uploading the file but nothing happens after that. I wonder if I should be starting instead in the InsertItemTemplate.
So, I need to know how to accomplish a couple of options: I need to start out in either the InsertItemTemplate or the EmptyDataTemplate. If I do the latter, I will need to know how to get from there to the ItemTemplate so the rendering can be displayed.
What code should I use to display the data--that is, how do I move from the EmptyDataTemplate to the ItemTemplate?
View Complete Post