title: is there anyway to populate empty list of objects within the scope of Page_Load after page loading?
body: <p>the problem is that i want to populate <code>var docfiles = new List&lt;string&gt;();</code> with some files names uploaded by user using <strong>dropzone js</strong> but the list wont populate because for first time page loaded <code>httpRequest.Files.Count &gt; 0</code> which means there's no file uploaded by user  is there any idea to fill the list after user upload file and for sure that will be after page load ? </p>
  
  <pre><code>  protected void Page_Load(object sender, EventArgs e)
  {
  
  
  
      var httpRequest = System.Web.HttpContext.Current.Request;
      HttpFileCollection uploadFiles = httpRequest.Files;
      var docfiles = new List&lt;string&gt;();
  
  
      if (httpRequest.Files.Count &gt; 0)
      {
          int i;
          for (i = 0; i &lt; uploadFiles.Count; i++)
          {
              HttpPostedFile postedFile = uploadFiles[i];
              int fileSizeInBytes = postedFile.ContentLength;
              string fileName = postedFile.FileName;// Request.Headers["X-File-Name"];
              string fileExtension = "";
  
              fileExtension = Path.GetExtension(fileName);
              string savedFileName = Guid.NewGuid().ToString() + fileExtension;
              string path = HttpContext.Current.Server.MapPath("~/img/items/");
              string filename = path + savedFileName;
              postedFile.SaveAs(filename);
              docfiles.Add(filename);
          }
          itm.img1 = "ASs";
  
      }
    }
  </code></pre>