title: How do I dynamically create file download links in code behind in ASP.NET?
body: <p>I have files on the web server. I want to make them available for download to a client. However, I don't know what the files will be, or even how many there will be until runtime. If I create a hyperlink with the NavigateUrl set to the file location on the server, then the client just tries to locate the file on their local system at that location, so that doesn't work. I was able to get a single file to work using a linkbutton, but that is also not an option because I can't create it dynamically.</p>
  
  <p>Is there a way to do this dynamically in ASP.NET?</p>