user366312
user366312

Reputation: 16884

asp.net - templates

What does the word 'Template' mean when talking about ASP.NET?

For example I have heard about Page template, item template, etc.

What are they?

Upvotes: 0

Views: 205

Answers (1)

Matthew Jones
Matthew Jones

Reputation: 26190

Templates (in the case of databound controls such as GridViews) enclose controls that are to be shown for each entry (row, item, etc) the databound control generates.

So, a template containing a Label control bound to a field called RowName will generate a Label, with the Text property set to the value of the RowName, for each row.

Page templating is a similar idea; namely that each page can inherit controls from a "Master" page without having to code those controls for each page seperately.

Upvotes: 3

Related Questions