Display a list of results with numbers in ASP.NET
<p>I have a common problem in an ASP.NET web form. I'm just surprised that I haven't found a common solution :)</p>

<p>I have a list of results being returned from a SQL Server database. I want to show those results in my web page with number to the left of them. For instance, my result set may look like the following:</p>

<pre><code>New York | NY
Chicago | IL
Los Angeles | CA
</code></pre>

<p>In my web page, I would like to show them as:</p>

<pre><code>1. New York, NY
2. Chicago, IL
3. Los Angeles, CA
</code></pre>

<p>I was surprised that I can't find a way to make the numbers automatically appear. Am i doing something wrong? If not, what is the recommended approach?</p>

<p>Thanks</p>
