Skip to content

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:

NameDescriptionPriceDate/Time
Thing 1Thing 1 description$93.005/30/2026 7:09:00 PM
Thing 2$24.005/12/2026 10:18:00 AM
Thing 3$17.006/6/2026 10:05:00 PM
Thing 4$67.005/26/2026 6:50:00 PM
Thing 5Thing 5 description$56.005/21/2026 5:09:00 PM
Thing 6Thing 6 description$53.005/15/2026 5:58:00 AM
Thing 7$7.006/5/2026 3:36:00 PM
Thing 8Thing 8 description$70.005/29/2026 12:28:00 PM
Thing 9Thing 9 description$59.006/8/2026 1:21:00 PM
Thing 10$65.005/28/2026 10:47:00 PM
Thing 11Thing 11 description$85.006/9/2026 11:35:00 AM
Thing 12Thing 12 description$13.005/31/2026 9:00:00 AM
Thing 13Thing 13 description$10.005/21/2026 12:17:00 PM
Thing 14Thing 14 description$33.006/8/2026 6:26:00 PM
Thing 15Thing 15 description$52.005/16/2026 8:09:00 PM
Thing 16$9.006/6/2026 2:29:00 PM
Thing 17$49.005/18/2026 12:10:00 AM
Thing 18Thing 18 description$60.005/12/2026 10:18:00 AM
Thing 19Thing 19 description$68.006/5/2026 12:44:00 PM
Thing 20$6.005/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.