Features of CodeGenerator:
1. The markup is simple and practical, and all web page designers can master it within a minute. And it does not conflict with the HTML standard. The template page can be edited with any WYSIWYG tool, which is exactly the same as editing an ordinary HTML website.
2. Marking is only related to the presentation layer and does not include any business logic. It does not affect your application of multi-layer structures at all.
3. The tag is parsed into a generator object in the background, which is completely object-oriented, unlike most generators that rely on strings.
4. The generator object uses the DataSource property to obtain data. DataSource can be a simple value type (such as int, DateTIme), a simple array (such as decimal[], string[]), or an ADO.NET data set (such as DataTable), or even a single object entity or object collection or list (such as SomeClassCollection, List), all data source types are accepted! Haha, it supports more types than the data control provided by ASP.NET.
5. The name of the tag is directly related to the column name ColumnName or property name PropertyName of the data source. The benefits are self-evident.
Study this carefully, it will definitely inspire you to use asp.net to generate static pages.