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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.