Auto Display
This template uses the ASIS made AutoDisplay NuGet packages. These make it easy to generate
tables and description lists
as well as automatically fill Excel spreadsheets.
See the Readme files for AutoDisplay.Web
and AutoDisplay.EpPlus
for more information about formatting the output.
Tables
Pass an IEnumerable in an asp-for attribute in a
<table> to fill the table with data:
| Name | Description | Price | Date/Time |
|---|---|---|---|
| Thing 1 | Thing 1 description | $93.00 | 5/30/2026 7:09:00 PM |
| Thing 2 | $24.00 | 5/12/2026 10:18:00 AM | |
| Thing 3 | $17.00 | 6/6/2026 10:05:00 PM | |
| Thing 4 | $67.00 | 5/26/2026 6:50:00 PM | |
| Thing 5 | Thing 5 description | $56.00 | 5/21/2026 5:09:00 PM |
| Thing 6 | Thing 6 description | $53.00 | 5/15/2026 5:58:00 AM |
| Thing 7 | $7.00 | 6/5/2026 3:36:00 PM | |
| Thing 8 | Thing 8 description | $70.00 | 5/29/2026 12:28:00 PM |
| Thing 9 | Thing 9 description | $59.00 | 6/8/2026 1:21:00 PM |
| Thing 10 | $65.00 | 5/28/2026 10:47:00 PM | |
| Thing 11 | Thing 11 description | $85.00 | 6/9/2026 11:35:00 AM |
| Thing 12 | Thing 12 description | $13.00 | 5/31/2026 9:00:00 AM |
| Thing 13 | Thing 13 description | $10.00 | 5/21/2026 12:17:00 PM |
| Thing 14 | Thing 14 description | $33.00 | 6/8/2026 6:26:00 PM |
| Thing 15 | Thing 15 description | $52.00 | 5/16/2026 8:09:00 PM |
| Thing 16 | $9.00 | 6/6/2026 2:29:00 PM | |
| Thing 17 | $49.00 | 5/18/2026 12:10:00 AM | |
| Thing 18 | Thing 18 description | $60.00 | 5/12/2026 10:18:00 AM |
| Thing 19 | Thing 19 description | $68.00 | 6/5/2026 12:44:00 PM |
| Thing 20 | $6.00 | 5/14/2026 1:36:00 AM |
Description Lists
You can pass a single object of any type to display its properties:
- Name
- Thing 1
- Description
- Thing 1 description
- Price
- $93.00
- Date/Time
- 5/30/2026 7:09:00 PM
Excel
There are a set of extension methods for automatically filling Excel spreadsheets. These are built on the EP Plus library.