Bind Directory.EnumerateFiles to a Repeater using a Generic List
问题 I am trying to create a small web app, that when I type in a game name, it will search through a folder with a whole lot of icons to find one similar to the typed in game. I then want to show a repeater with the name of the icon, as well as the icon next to it. So far I have successfully displayed the name with this code: IEnumerable<string> getfiles = from f in Directory.EnumerateFiles(Server.MapPath("~/_resources/game_icon"), "*.*", SearchOption.AllDirectories) where Path.GetFileName(f)