title: Import function that prints each row during load?
body: <p>I am in the process of making a import funcktion (content from old system to new system). The import itself is in place - but i want the import job to print a row for each result it imports, ie.</p>
  
  <ul>
  <li>Imported Page 1</li>
  <li>Imported Page 2</li>
  </ul>
  
  <p>The job is written in C#. What is the best way to achive the above? It is running in a web-app.</p>
  
  <p>Currently it is a simple loop, like this</p>
  
  <pre><code>foreach(KeyValuePair&lt;string, string&gt; entry in myDictionary)
  {
      // Insert into DB
      // Print line that this line has been inserted into DB
  
  }
  </code></pre>
  
  <p>The loadtime of the script is above 1 minute - there is alot of items. So to keep the user engaded, there is a need to show a status of the import, and that it is running, and how long it has gotten - a simple Print message for each entry, would do the trick.</p>