I’ve added the content from DirectoryInfo.GetFiles() to a List<string>. Now I wish to display each row from the list using the Repeater control.
I’ve done this before with the <%# Eval("Name") %> when I got the data directly from DirectoryInfo.GetFiles().
But now when they’re in a list, the “Name” attribute does not seem to be there anymore. So how should I do this with the Eval..?
Now the Data is the string itself. Get it using this code.
and on code behind